Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Please help me with my html script. Can this be done?
Old 10-08-2007, 11:45 PM Please help me with my html script. Can this be done?
X_X_ROB_X_X's Avatar
Novice Talker

Posts: 5
Name: Rob
Location: USA
Trades: 0
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.rando m()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Mat h.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,stat us=yes,menubar=yes,toolbar=yes,resizable=yes';popu pWindow=window.open('',myname,settings);
if(infocus=='front'){popupWindow.focus();popupWind ow.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>
X_X_ROB_X_X is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to Please help me with my html script. Can this be done?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.08460 seconds with 12 queries