Web Analytics Made Easy -
StatCounter window.status=? - CodingForum

Announcement

Collapse
No announcement yet.

window.status=?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • window.status=?

    How do you make the Status bar have whatever text you want it to have and when you mouseover a link it will have the text you want for that link and when you mouseout it will retuen to the text you wanted? <br><br>Here is what I am doing:
    <script>
    <!--
    window.status="I/'m superman"
    -->
    </script>
    <a href="http://www.dynamicdrive.com/" target=new onmouseover="window.status='Dynamic Drive'" onmouseout=?>Dynamic Drive</a>

  • #2
    Easily by using defaultStatus property.
    Like :
    Code:
    <script type="text/javascript">
    defaultStatus = "This is default status text.";
    
    function setStatus(sStatus)
    {
    	window.status = sStatus;
    	return false;
    }
    
    function getStatus()
    {
    	return window.status;
    }
    </script>
    Code:
    <body>
    	<a href="#" onmouseover="setStatus('Hello');">Hover me First</a>
    	<a href="#" onmouseover="setStatus('World..');" onmouseout="setStatus('..and rest of you!');">..then Me</a>
    </body>
    Zvona
    First Aid for
    Web Design

    Comment


    • #3
      That code didn't work for me so here is another way:

      Code:
      <html>
      <head>
      <script type="text/javascript">
      defaultStatus = "This is default status text.";
      </script>
      <body>
      	<a href="#" onMouseOver="window.status='Link Description'; return true">This is a link</a>
      </body>
      </html>
      USA

      Comment

      Working...
      X