Statusbar Message
1. This is a quick, and quite simple tutorial. Now its not html, it uses Javascript. What it does is lets you customize what it says in the status bar usually at the bottom left of your browser. Right now in your browser it should say 'Infinite Designs.org ....'. Here's how to make it do that.

Within the <head> tags of your website put the following: 

<head>
<script type="text/javascript">
window.status = "Your Message Here";
</script>
</head>

But what if your websurfer doesn't have a web browser that doesn't support javascript, so it displays the script as text? To prevent that, you can simply add <!-- and // --> around the code in the script like so:

<body>
<script type="text/javascript">
<!--
window.status = "Your Message Here";
// -->
</script>
</body>

2. Now what if you want the status bar to display information when people rollover your links. Here's an easy trick how to. First, either in the <head> tags or in the <body> tags add your status bar code, but make it a function{ } like so:

<script language="Javascript">
<!--
/* This is the function used to display the statusbar message when called upon*/

function linkmessage(msg){
window.status = msg || ' ';
}

// -->
</script>

(note: I didn't put my javascript in the header tags, that's why <!-- and // --> are added.)

The msg || ' '; basically means, the status bar will display the contents of the variable msg, if there aren't any contents it just displays a space (seems link nothing).

3. Now we must add some code to your <a href> links telling them to activate the functions we declared in the javascript.

<a href="#" onMouseOver="linkmessage('This is the First Link');return true;" onMouseOut="linkmessage();">My First Link</a>
<br>
<a href="#" onMouseOver="linkmessage('This is the Second Link');return true;" onMouseOut="linkmessage();">My Second Link</a>

ExampleOk so what does all of this do. Well the onMouse.. code is javascript which I added to the already existing links. So onMouseOver, means when the mouse rolls over the link, it then activates the function we made called 'linkmessage', and the value in the brackets is the message it sends to the 'linkmessage' function. onMouseOut detects when the mouse rolls off a link, therefore it removes the status bar message, replacing it with a blank space. Now return true; was added because your browsers default is to display the path of the link in the status bar. Instead now, return true; tells it to listen to the onMouseOver command. So now your links should work like the following.

My First Link
My Second Link


Close    To Top
  • Prev Article-Web Design:
  • Next Article-Web Design:
  • Now: Tutorial for Web and Software Design > Web Design > JavaScript > Web Design Content
    Photoshop Tutorial
     

    Special Effect

      3D Effect
      Photoshop Articles
    Programming Tutorial
     

    C/C++ Tutorial

      Visual Basic
      C# Tutorial
    Database Tutorial
     

    MySQL Tutorial

      MS SQL Tutorial
      Oracle Tutorial
    Geek Tutorial
     

    Blogging Tutorial

      RSS Tutorial
      Podcasting Tutorial
    Graphic Design Tutorial
      Coreldraw Tutorial
      Illustrator Tutorial
      3D Tutorials
    Webmaster Articles
     

    Domain Service

      Web Hosting
      Site Promotion
    Java Tutorial/ Articles
     

    Java Servlets

      JavaEE Tutorial
     

    JavaBeans Tutorial

    XML Tutorial/ Articles
     

    XML Style

      AJAX Tutorial
      XML Mobile
    Flash Tutorial/ Articles
     

    Flash Video

      Action Script
      Flash Articles
    OS Tutorial/ Articles
      Linux Tutorial
      Symbian Tutorial
      MacOS Tutorial
    Personal Tech
      Hardware Tutorial
      Software Tutorial
      Online Auction