|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
|
|
#1
|
|||
|
|||
|
New window popup
I got this code [the script portion] off hypergurl.com....not sure if this is right...can someon help.. I am trying to have the web page [www.malankaracatholicconvention2006.net] launched with a new window poping that has a flash movie. I dont know how to write scripts. The page launches with no errors but the new window doesnt pop up. HELP!?!?!?!?!?...
<head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Malankara Catholic Convention</title> <script language="javascript" type="text/javascript"> var win=null; function NewWindow(mypage,myname,w,h,scroll,pos) { if(pos=="random") {LeftPosition=(screen.availWidth)?Math.floor(Math.random()*(screen.availWidth-w)):50;TopPosition=(screen.availHeight)?Math.floor(Math.random()*((screen.availHeight-h)-75)):50;} if(pos=="center") {LeftPosition=(screen.availWidth)?(screen.availWidth-w)/2:50;TopPosition=(screen.availHeight)?(screen.availHeight-h)/2:50;} if(pos=="default") {LeftPosition=50;TopPosition=50} else if((pos!="center" && pos!="random" && pos!="default") || pos==null){LeftPosition=0;TopPosition=20} settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',l ocation=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no'; win=window.open(mypage,myname,settings); if(win.focus){win.focus();}} function CloseNewWin(){if(win!=null && win.open)win.close()} window.onfocus=CloseNewWin; // --> </script> </head> <frameset rows="189,*" cols="*" framespacing = "0" frameborder = "no" border = "0"> <frame src="top.htm" name="topFrame" scrolling="No" noresize="noresize" id = "topFrame" title = "topFrame" /> <frame src="Mainmiddle.html" name="mainFrame" id= "mainFrame" title = "mainFrame" /> </frameset><noframes></noframes> <noframes> <body onload="NewWindow('finalholymass.swf','Holy_Mass_Service','350','350','no','center')"> </body> </noframes> </html> |
![]() |
| Viewing: Dev Shed Forums > Web Site Management > Scripts > New window popup |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|