Post Reply 
stopping onmouseover status bar messages
Aug. 11, 2004, 07:57 PM
Post: #1
 
Hi all,

One thing that really annoys me is when you move your mouse over a link and a message appears in the status bar as opposed to the real url.

Now I suppose the easy way to stop that is by disabling onmouseover, but with so many sites using drop down menus, I didn't want to go that route.

Also using a javascript status function like so:
Code:
function status() {return true}
Has its drawbacks also. The main effect this seems to have is nothing displays in the status bar, no message, no url.

Also I have seen sites that do:
Code:
onmouseover="status='msg';return true"
Which effectively replaces the status function.

As it turns out, if "return true" is used on a mouseover event, it tells the browser to prevent the default action, which for a link, is to show the url. So by eliminating "return true", the real url will be shown.

With that in mind,`here is the filter that I'm now using:
Code:
[Patterns]
Name = "Stop Link Hiding"
Active = TRUE
Bounds = "onmouse(out|over)\s+=$AV(*)"
Limit = 256
Match = "\1return\s*(?)\2(^*?)"
Replace = "\1\2"

This filter just removes the "return" statement. Image swapping & dropdown menus still function but the real url shows in the status bar.

For my filter setup, I placed this near the end & don't need "multi" enabled. Depending on your filters, you may need to enable "multi".

Comments Welcome
Mike
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: