Hi,
1. Had to scrap the document event listener, it caused problems on resize,
capturing a mouseevent before the layers were redrawn. The onblur event is
fired when clicking on any dynlayer on the page.! Not just the links.
2. Of course the onblur did not fire because it was always overridden by the
document event listener.
The problem then is simply that clicking on a dynlayer object takes focus
away from the window object!! Still looking for a workaround. Anyone out
there using window.onfocus and/or window.onblur? I think I should be looking
at the way events bubble. maybe.
Blessings, Darryl
I wrote:
>IE5.0 problems/issues:1.<a> links (used to slide menu layers) cause the
onblur event to fire. I now use an event listener on the document to keep
the animation going.
>2. Although another window is open and on top it seems that the onblur
focus does not fire. Same too with NS6.
-----Original Message-----
From: Darryl Cousins [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 12, 2001 10:57 PM
To: [EMAIL PROTECTED]
Subject: RE: [Dynapi-Help] window.onfocus and IE (was window.open and
IE)
Thanks Raymond,
The animation is pure actionship generated and I can stop/start it by
sending a variable like this:
function passVarT(){
myLayer.doc.myMovie.SetVariable("volno","playtheanim");
}
function passVarF(){
myLayer.doc.myMovie.SetVariable("volno","stoptheanim");
}
Works fine. I call the functions like this:
DynAPI.onLoad = function() {
window.onfocus = function(){
passVarT();
}
window.onblur = function(){
passVarF();
}
}
(Tried <body> tag but of course error because myLayer doesn't yet exist.)
Works a treat. In NS4.7 only :-(
IE5.0 problems/issues:1.<a> links (used to slide menu layers) cause the
onblur event to fire. I now use an event listener on the document to keep
the animation going.
2. Although another window is open and on top it seems that the onblur focus
does not fire. Same too with NS6.
Tried lots of different ways to call the passVarT/F but all failed to
produce the desired result.
Any suggestions?
Blessings, Darryl.
-
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help