Please help me with my html script. Can this be done?

Status
Not open for further replies.

X_X_ROB_X_X

Banned
Jun 11, 2007
60
1
0
USA
www.totaldetails.info
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.

<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>
 


Maybe something like this works:?!
<body onLoad="popup('http://www.pop-under.html','pagename','999','999','center','back' ); popup('http://www.pop-under2.html','pagename','999','999','center','back' );">
 
Status
Not open for further replies.