Post Reply 
stopping onmouseover status bar messages
Aug. 11, 2004, 10:03 PM
Post: #3
 
Mike;

Nice, but I've got a few questions.

1) Why do you match on the onmouseout event? When the mouse leaves a link, regardless of any event handler, the default action is already to do nothing. By default, the status bar returns to displaying nothing, or else whatever it should display by virtue of some previous command. (And if the status bar displays undesirable junk all the time, then this isn't the correct filter to be removing that action; but I'm sure you already knew that. <_<)

2) There are other interactive elements that react to mouse events. What about form elements and image maps? To be sure, image maps are really just links of a different nature, but form elements, particularly buttons, are not the same at all. (And don't be limited to thinking of menus here, either.) Here, we depend on javascript for anything above the most rudimentary actions. Messing with a 'return' attribute in these cases can easily mess up part or all of a page.

Like you, I have also seen some strange coding in my time. More than once, I've seen onmouseover events for both the a href.... tag, and the <img.... tag embedded within that link. One had a return, to control the status bar, the other popped up the URL in the "alt" text box. Kinda neat, when you think about it, but highly out of the ordinary. The point being, your filter would break this "feature", but whether or not that's desirable, or even acceptable, is up to the individual viewer.

What I'm driving at is that I think you can improve your filter in two ways - remove the onmouseout event handler from the match string, and enlarge the bounds to specify the <a href..... [/url] tags. Or have I missed something in my reasoning? Wink


Oddysey

I'm no longer in the rat race - the rats won't have me!
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
[] - z12 - Aug. 11, 2004, 07:57 PM
[] - Kye-U - Aug. 11, 2004, 08:12 PM
[] - Oddysey - Aug. 11, 2004 10:03 PM
[] - z12 - Aug. 11, 2004, 11:34 PM
[] - z12 - Aug. 12, 2004, 01:15 AM
[] - Shea - Aug. 12, 2004, 01:30 AM
[] - Oddysey - Aug. 12, 2004, 03:23 AM
[] - Siamesecat - Aug. 12, 2004, 06:00 AM
[] - z12 - Aug. 12, 2004, 11:16 AM
[] - Shea - Aug. 12, 2004, 02:47 PM
[] - Oddysey - Aug. 12, 2004, 04:44 PM

Forum Jump: