JavaScript Tip of the Week for May 13, 1996: Spiff up the Old Page | 5 | WebReference

JavaScript Tip of the Week for May 13, 1996: Spiff up the Old Page | 5

JavaScript Tip of the Weekfor May 13, 1996: Remove The Status Bar Messages

I don't know about you, but it annoys me when those little onMouseOver status bar messages (which are useful for helping users around your site) stay in the status bar after you've moved the cursor off the link, because then you have no idea which message is for what. Here is a little fix for this problem. Put these two functions in the main script:
function message(txt){
        window.status = txt;
        setTimeout("remove_message()",2500);
        }
function remove_message(){
        window.status="";
        }
Then, instead of using the usual onMouseOver statement in the <HREF> tag, use this:
        onMouseOver = "message('Here is the message.');return true;"
What happens is after 2.5 seconds the status bar message is automatically removed, allowing for enough time to read, but not confusing anyone. You can easily change the time from 2.5 seconds to 5 seconds or whatever, just change the number 2500 to 5000, or the the desired waiting time. Just to make sure you like this method, try it out on this link. Source