emergency_pants
12-07-2004, 05:06 PM
I thought I'd solved my focus issue, but I was gutted to find that it doesn't work on Mozilla/Firefox. :( :mad: :( :eek:
I've tried searching for answer, but haven't found anything viable.
Can someone take a look and tell me what I'm doing wrong?
<SCRIPT LANGUAGE=JavaScript>
function swfOn(){
var swf = document.getElementById("swf");
var logo = document.getElementById("logo");
swf.style.zIndex = "10";
var movieActive = "true";
document.finder.setVariable("movieActive", movieActive);
}
function swfOff(){
var swf = document.getElementById("swf");
var logo = document.getElementById("logo");
swf.style.zIndex = "0";
var movieActive = "false";
document.finder.setVariable("movieActive", movieActive);
}
</SCRIPT>
</head>
<body>
<div id="swf">
<object onblur=swfOff() onfocus=swfOn() classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
width="600" height="382" id="finder">
<param name="movie" value="finder.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<embed src="finder.swf" width="600" height="382" quality="high" wmode="transparent" name="finder" swliveconnect="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
</object>
See the "onblur=swfOff() onfocus=swfOn() " at the start of the <object...
The swfOn() and swfOff() functions are being called because the zIndex part of the function is working!! So it's just the setVariable() command which doesn't seem to work.
As I say, it works PERFECTLY on IE, but not at all on Mozilla/Firefox.
This is thoroughly doing my head in. :(
I've tried searching for answer, but haven't found anything viable.
Can someone take a look and tell me what I'm doing wrong?
<SCRIPT LANGUAGE=JavaScript>
function swfOn(){
var swf = document.getElementById("swf");
var logo = document.getElementById("logo");
swf.style.zIndex = "10";
var movieActive = "true";
document.finder.setVariable("movieActive", movieActive);
}
function swfOff(){
var swf = document.getElementById("swf");
var logo = document.getElementById("logo");
swf.style.zIndex = "0";
var movieActive = "false";
document.finder.setVariable("movieActive", movieActive);
}
</SCRIPT>
</head>
<body>
<div id="swf">
<object onblur=swfOff() onfocus=swfOn() classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
width="600" height="382" id="finder">
<param name="movie" value="finder.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<embed src="finder.swf" width="600" height="382" quality="high" wmode="transparent" name="finder" swliveconnect="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
</object>
See the "onblur=swfOff() onfocus=swfOn() " at the start of the <object...
The swfOn() and swfOff() functions are being called because the zIndex part of the function is working!! So it's just the setVariable() command which doesn't seem to work.
As I say, it works PERFECTLY on IE, but not at all on Mozilla/Firefox.
This is thoroughly doing my head in. :(