Click to See Complete Forum and Search --> : onmouseout event in Netscape
MadWorm
Feb 18th, 2001, 11:34 PM
I have a page on a customer site with following tag
<body onmouseout="self.close()">
IE is OK with it, but Netscape 4.08 and 4.73 (so I would guess all Netscapes) don't seem to recognise the event. Has anyone alse encountered this? My customer likes how it works in IE, frankly I'm surprised it doesn't work in Netscape, if anything I would have thought it would have been the other way round.
sail3005
Feb 19th, 2001, 12:25 AM
netscape 4.x doesn't support the onmouse functions on every object. What you might try to do is make a layer, and hide it in the background, and then say when the mouse moves off it to do the function you want.
Thanks Russell, I didn't realise only some objects support it, just presumed thay all did. Do images? I'll give it a try at work tomorrow.
sail3005
Feb 19th, 2001, 11:27 AM
no, i don't think they do. But you could make the image a link, and then use the mouse function within the < a href tag.
As far as i know, (or can think of) the only objects that ns 4x supports those functions you want are as follows:
<layer>
<ilayer>
<span>
<div>
<a href>
there might be more, but thats all i can think of
Psyrus
Feb 19th, 2001, 12:03 PM
You might be able to do this in Netscape by placing this code in a script instead of the body tag:
<script>
if( navigator.appName == "Netscape" ){
document.onmouseout = self.close;
}
</script>
I don't have Netscape installed so I can't test it out sorry.
Thanks guys for the suggestions.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.