imity4
04-09-2003, 08:30 PM
I have a pop up window that is launched after a flash sniffer loads my "has flash index.html" my problem is, the window frame name is loading as the name of the swf file...
any work around?
Thanks,
imity4
here's the launch window code:
<HTML>
<HEAD>
<title>EastWest</title>
<script language="JavaScript">
function popup() {
var sWidth = screen.availWidth;
var sHeight = screen.availHeight;
xOffset = (sWidth / 2) - 380;
yOffset = (sHeight / 2) - 220;
if (xOffset < 0) xOffset = 0;
if (yOffset < 0) yOffset = 0;
var wFeatures = 'width=760,height=420,scrollbars=no,toolbar=no,scr eenX=' + xOffset + ',screenY=' + yOffset + ',top=' + yOffset + ',left=' + xOffset;
window.open('EastWest.swf','popWin',wFeatures);
}
</script>
</head>
<BODY BGCOLOR="#FFFFFF" onload="javascript:popup()">
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="center" WIDTH="100%" HEIGHT="100%">
<TR>
<TD><center>
<img src="images/EWC_logo.gif" width="431" height="102" border="0" usemap="#Map2">
</center></TD>
</TR>
</TABLE>
<map name="Map">
<area shape="rect" coords="166,137,260,152" href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&Lang=English&P5_Language=English" target="_blank">
</map>
<map name="Map2">
<area shape="rect" coords="228,74,330,107" href="#" NAME="click me" onclick="javascript:popup()">
</map>
</body>
</HTML>
any work around?
Thanks,
imity4
here's the launch window code:
<HTML>
<HEAD>
<title>EastWest</title>
<script language="JavaScript">
function popup() {
var sWidth = screen.availWidth;
var sHeight = screen.availHeight;
xOffset = (sWidth / 2) - 380;
yOffset = (sHeight / 2) - 220;
if (xOffset < 0) xOffset = 0;
if (yOffset < 0) yOffset = 0;
var wFeatures = 'width=760,height=420,scrollbars=no,toolbar=no,scr eenX=' + xOffset + ',screenY=' + yOffset + ',top=' + yOffset + ',left=' + xOffset;
window.open('EastWest.swf','popWin',wFeatures);
}
</script>
</head>
<BODY BGCOLOR="#FFFFFF" onload="javascript:popup()">
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="center" WIDTH="100%" HEIGHT="100%">
<TR>
<TD><center>
<img src="images/EWC_logo.gif" width="431" height="102" border="0" usemap="#Map2">
</center></TD>
</TR>
</TABLE>
<map name="Map">
<area shape="rect" coords="166,137,260,152" href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&Lang=English&P5_Language=English" target="_blank">
</map>
<map name="Map2">
<area shape="rect" coords="228,74,330,107" href="#" NAME="click me" onclick="javascript:popup()">
</map>
</body>
</HTML>