codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:

Javascript Displaying Text in the Status Bar



The status bar is the space immediately below the browser display and you can configure it to display text when you hover over a link by using a little javascipt. We'll use the onMouseOver and onMouseOut events, so that when the mouse hovers over the link the text appears, and when it moves away from the link, the status bar is set to blank:

<a href="http//www.codetoad.com" onMouseOver="window.status='Click here to visit one of the best scripting sites around'; 
 return true" onMouseOut="window.status=''; return true">Click here</a>


Keep all the above on one long line to ensure it works properly. Also, don't forget to add the return=true; to the script, otherwise it won't work.

The above code produces something like this :

Click here










Recent Forum Threads
• C++
• Re: refresh parent after closing pop up window
• Dynamic Insertion
• Date and Time function around the world???
• Significant Factors
• Perl array access
• Re: huffman encoding and decoding in C++...
• Perl One Liner: Replace {(
• Re: html including php, accessing the functions


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2009