Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

 
 
Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 2007-10-09, 12:46 AM   #1
XoX_ROB_XoX
Internet! Is that thing still around?
 
XoX_ROB_XoX's Avatar
 
Join Date: Sep 2007
Location: US
Posts: 6
Send a message via Yahoo to XoX_ROB_XoX
Question Please help me with my html script. Can this be done?

I have a full sized popunder window for a simple redirect script. I use this to show off other sites in development when taking them to the main one.

Problem is I want multiple popunders instead of just one. Is it possible to have multiple popunders load in a series underneath the main page?

Can someone please show me what needs to be changed in this example script for this to happen please? Thank you very much.



Quote:
<html>
<head>

<SCRIPT LANGUAGE='JAVASCRIPT' TYPE='TEXT/JAVASCRIPT'>
<!--
var popupWindow=null;
function popup(mypage,myname,w,h,pos,infocus){

if (pos == 'random')
{LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
else
{LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
settings='width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',scrollbars=yes,location=yes,directories=yes,status=yes,menubar=yes,toolbar=yes,resizable=yes';popupWindow=window.open('',myname,settings);
if(infocus=='front'){popupWindow.focus();popupWindow.location=mypage;}
if(infocus=='back'){popupWindow.blur();popupWindow.location=mypage;popupWindow.blur();}

}
// -->
</script>



<meta http-equiv="REFRESH" content="0;url=http://www.main-page.com">
</HEAD>
<body onLoad="popup('http://www.pop-under.html','pagename','999','999','center','back');">



</body>
</HTML>
XoX_ROB_XoX is offline   Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:10 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc