View Full Version : status bar
Hi. I'm a newbie. And I have a question. I want to change the status bar every time I MouseOver a link. Is there a way to do this globally to all the links on a page, or do I have to include the onMouseOver="window.status etc." for every single link? Thanks.
@)~}~~~
No, you can globally do it like this:
<script type="text/javascript">
window.onload = function() {
var e = document.getElementsByTagName("a"),
eventhandler = function() {
window.status = "inu to neko";
return false;
};
for(var i=0;i<e.length;i++)
e[i].onmouseover = eventhandler;
};
</script>However, the statusbar is an important GUI feature. You shouldn't play with it, and most modern browsers won't even let you by default.
It worked! Thanks. I appreciate it.
@)~}~~~
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.