Return to iWEBTOOL

Go Back   iWEBTOOL Talk > The Web and your Website > Programming > HTML > JavaScript
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
 
Welcome to iWEBTOOL Talk, where you talk about webmaster-related stuff.
 
Discuss topics which interest you.
With over thousands of threads (topics), we're sure you'll find something that'll interest you.
Ask for help whenever you need it.
We have thousands of members who are available to help you if you need it.
It's absolutely FREE!

 1  Register           2  Browse the board           3  Discuss whatever may interest you!
 


Closed Thread
 
Thread Tools Search this Thread Display Modes
Old 10-09-2007, 03:36 AM   #1
X_X_ROB_X_X
Newcomer
 
X_X_ROB_X_X's Avatar
 
Join Date: Jun 2007
Location: USA
Posts: 7
X_X_ROB_X_X is on a distinguished road
Question Please help me with my javascript. Can this be done?

I have a full sized popuunder 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 popuunders 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  
 
This is an Ad Revenue Sharing forum Place your advert here
SEO Checklist
Get yourself better ranking with
our "Do-it-Yourself" SEO Checklist.
Click Here
Old 10-09-2007, 05:13 AM   #2
jumpenjuhosaphat
 Contributor 
 
jumpenjuhosaphat's Avatar
 
Join Date: Jun 2006
Location: Denver
Posts: 4,459
jumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud of
Default Re: Please help me with my html script. Can this be done?

That would be a javascript problem, not really an HTML problem....Unfortunately, I don't know much about JS, so I can't really help you. But, I will change the title of the thread and move it to a better forum, that might help a bit.
__________________
Storage Sheds
Lost Forum
jumpenjuhosaphat is offline  
Old 11-07-2007, 12:38 PM   #3
shakir
Smurf
 
shakir's Avatar
 
Join Date: Nov 2007
Posts: 28
shakir is on a distinguished road
Default Re: Please help me with my javascript. Can this be done?

Try to call opnpopup inside popup function or in popup function put multiple entries
__________________
Please read and adhere to our signature policy. Thank you.
shakir is offline  
Old 11-07-2007, 03:05 PM   #4
UnKnown
Moderator
 
UnKnown's Avatar
 
Join Date: Aug 2006
Posts: 1,128
UnKnown is just really niceUnKnown is just really niceUnKnown is just really niceUnKnown is just really niceUnKnown is just really nice
Default Re: Please help me with my javascript. Can this be done?

these days pop ups are rendered useless. Toolbars block them along with all browsers and a unlimited supply of software people use
UnKnown is online now  
Old 11-17-2007, 07:56 AM   #5
LordOrange
Newcomer
 
LordOrange's Avatar
 
Join Date: Nov 2007
Posts: 13
LordOrange is on a distinguished road
Default Re: Please help me with my javascript. Can this be done?

hav u tried using win.document.open("");
LordOrange is offline  
 
This is an Ad Revenue Sharing forum Place your advert here
Webmaster Tools Webmaster Tools Click Here
Closed Thread

(Threads which have no activity for more than 30 days are automatically closed.)



Quick Reply
Message:

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript: return not in function? justravis JavaScript 4 10-02-2007 04:48 PM
Can User Disable Javascript in IE emeeter JavaScript 5 03-11-2007 10:13 AM
Javascript giantcomet4 Programming 3 01-30-2007 12:49 PM
Javascript tutorials aijaz JavaScript 3 01-06-2007 09:26 PM
IE Javascript Question proudcollector Programming 5 11-03-2006 10:29 PM


All times are GMT. The time now is 01:43 AM.


Powered by vBulletin v3.6.7 © 2008, Jelsoft Enterprises Ltd. SEO by vBSEO © 2006, Crawlability, Inc.