Greenguy's Board


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

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
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
Old 2007-10-09, 06:43 AM   #2
Simon
That which does not kill us, will try, try again.
 
Simon's Avatar
 
Join Date: Aug 2003
Location: Conch Republic
Posts: 5,150
Send a message via ICQ to Simon Send a message via AIM to Simon Send a message via Yahoo to Simon
Just add a copy of your popUp/popUnder script to that first opened popunder window, which will then open a third window for you. Add the script to that third window to automatically open a fourth window. Keep adding the script to each new window you want to have open another new window and you can chain together as many popunder windows as you want. The onLoad in the pages' body tags will fire them off one after another for you. You can even set each one to move it's new popup window to a slightly different position so that the surfer can see how many you've opened when they close that first window.

Yes, definitely do that, and we'll all enjoy the traffic that runs screaming to us after visiting your site.

HTH





.
__________________
"If you're happy and you know it, think again." -- Guru Pitka
Simon is offline   Reply With Quote
Old 2007-10-09, 04:53 PM   #3
Beaver Bob
Porn Blog Addict
 
Beaver Bob's Avatar
 
Join Date: Oct 2005
Location: Las Vegas, Nevada
Posts: 715
Send a message via ICQ to Beaver Bob
yes multiple pop-unders. the perfect way to get bookmarkers.
Beaver Bob is offline   Reply With Quote
Reply


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 08:21 PM.


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