Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: window.status=?

  1. #1
    New to the CF scene
    Join Date
    Jun 2002
    Location
    middle'o'nowhere
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Internet Explorer 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
    Regular Coder
    Join Date
    May 2002
    Location
    Helsinki, Finland
    Posts
    231
    Thanks
    0
    Thanked 1 Time in 1 Post
    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

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    113
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •