The script works fine for me (almost, see my other thread). However when it launches the new window it gets "
http://www.mypage.com" infront of the window title that I have given it. I want my title to appear in a specific way and I'm picky. If I delete the text in the title tag the script doesn't work either, but I don't want to do that anyway (babbling, sorry).
My whole source is:
<<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<head>
<title>::  
;andreasgu
stavsson.c
om 
2;:
8;</title>
<script type='text/javascript'>
function SetWindow()
{
url = "mainplayer.htm" //Set address of new window
var height = 600 //Set height
var width = 800 //Set width
var name = "" //Set window name
var top = 200 //Set distance from top
var left = 200 //Set distance from left
newwin=window.open(url, name, "fullscreen=no,toolbar=no,
status=no,
menubar=no
,scrollbar
s=no,resiz
able=no,di
rectories=
no,locatio
n=no,width
=" + width + ",height=" + height + ",left=" + left + ",top=" + top);
// Cannot perform across all browsers
//this.focus();
//self.opener = this;
//self.close();
}
</script>
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0" bgcolor="#000000">
<table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%">
<tr>
<td align="center" valign="middle"> <object classid="clsid:d27cdb6e-ae
6d-11cf-96
b8-4445535
40000" codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#3,0,0,0"
width="550" height="400">
<param name="src" value="flash/intro.swf">
<param name="quality" value="high"
<embed src="flash/intro.swf" quality="high" pluginspage="
http://www.macromedia.com/shockwave/download/" type="application/x-shockw
ave-flash"
width="550" height="400">
</embed>
</object></td>
</tr>
</table>
</body>
See
http://www.andreasgustavsson.com/beta to see what I mean.
Cheers
/A
Start Free Trial