Scripts
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb Site ManagementScripts

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old March 14th, 2006, 10:52 AM
jenyc02 jenyc02 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2006
Posts: 9 jenyc02 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 42 m 59 sec
Reputation Power: 0
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>

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb Site ManagementScripts > New window popup


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway