Dec 28, 2001 #1 robulator Programmer Nov 17, 2000 33 US I'm using Netscape 6.1 and it seems that the onMouseOver and onMouseOut events for a <SPAN> tag don't fire. Does anyone have any insite into this? Thanks, Rob
I'm using Netscape 6.1 and it seems that the onMouseOver and onMouseOut events for a <SPAN> tag don't fire. Does anyone have any insite into this? Thanks, Rob
Dec 28, 2001 #2 tsdragon Programmer Dec 18, 2000 5,133 US Insight: Netscape = Garbage. Tracy Dryden tracy@bydisn.com http://www.bydisn.com Meddle not in the affairs of dragons, For you are crunchy, and good with mustard. Upvote 0 Downvote
Insight: Netscape = Garbage. Tracy Dryden tracy@bydisn.com http://www.bydisn.com Meddle not in the affairs of dragons, For you are crunchy, and good with mustard.
Dec 28, 2001 #3 twist Programmer Dec 4, 2001 100 CA set up your events using the methods they provide and it should work. try setting them up like this... <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Untitled</title> <script> function init() { document.getElementById("spanID".addEventListener("mouseout", someFunction, true); document.getElementById("spanID".addEventListener("mouseover", someFunction, true); } function someFunction() { alert("hello world" } </script> </head> <body onload="init()"> <span id="spanID">this is a test</span> </body> </html> Upvote 0 Downvote
set up your events using the methods they provide and it should work. try setting them up like this... <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Untitled</title> <script> function init() { document.getElementById("spanID".addEventListener("mouseout", someFunction, true); document.getElementById("spanID".addEventListener("mouseover", someFunction, true); } function someFunction() { alert("hello world" } </script> </head> <body onload="init()"> <span id="spanID">this is a test</span> </body> </html>
Dec 28, 2001 Thread starter #4 robulator Programmer Nov 17, 2000 33 US Thanks. I'll try it. But what if you need to pass parameters to the event handler? Upvote 0 Downvote
Dec 29, 2001 #5 baad Programmer Apr 10, 2001 1,481 RU one thing i've noticed: if you wanna event handlers to work for you, specify the position style property of an element i mean: <span id="test" style="position:absolute;" onmouseover="alert('hey, you\'ve just (mouse)overed me!!' )"></span> would work (at least it works for me in nn6 win98) Victor Upvote 0 Downvote
one thing i've noticed: if you wanna event handlers to work for you, specify the position style property of an element i mean: <span id="test" style="position:absolute;" onmouseover="alert('hey, you\'ve just (mouse)overed me!!' )"></span> would work (at least it works for me in nn6 win98) Victor