flash/javascript: netscape 7 does not exceute gotoframe

admin

Administrator
Staff member
Hello I made a popup with a flashmovie in it this is the htmlcode of the popupwindow:
<html>
<head>
<title>Navigation</title>
<style type="text/css">
<!--
#flash { position:absolute; top:0px; left:0px; width:267px; height:244px; z-index:1; }
-->
</style>
</head>
<body name="flashfenster">
<div id="flash"><object classid=
"clsid<img src=http://www.webdeveloper.com/forum/archive/index.php/"images/smilies/biggrin.gif" border="0" alt="">27CDB6E-AE6D-11cf-96B8-444553540000" codebase=
"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
width="267" height="244" id="myFlash" align=""><param name="movie"
value="messestand-04.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#FFFFFF">
<embed src="messestand-04.swf" quality="high" bgcolor="#FFFFFF"
width="267" height="244" name="myFlash" align="" type=
"application/x-shockwave-flash" pluginspage=
"http://www.macromedia.com/go/getflashplayer"></object></div>
</body>
</html>

In the secound (main) browserwindow I got a javascriptfunction, that controls the flash (gotoframe()):

<script language="JavaScript" type="text/javascript">
<!--
var newW;
function newWindow(url, win_name)
{
var browser = parseInt(navigator.appVersion),
newW = window.open(url, win_name," width=267,height=244,screenX=749,screenY=0,toolbar =no,directories=no,menubar=no,scrollbars=no,resizable=no");
if (browser >= 3)
{
if (window.moveTo) newW.moveTo(749, 0);
}
newW.focus();
newW.myFlash.GotoFrame(2);
}
// -->
</script>
--------------------------------------------------------------------------------

MY PROBLEM: IN NETSCAPE NAVIGATOR 7 the gotoframe-method is not excecuted. Why is there an error somewhere?
 
Back
Top