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 2 of 2

Thread: window.status

  1. #1
    New Coder
    Join Date
    Jul 2002
    Location
    Lingle, Wy
    Posts
    46
    Thanks
    0
    Thanked 0 Times in 0 Posts

    window.status

    Using the following code.
    Works good in IE, as usaual net 4.0 is the problem.

    Code snippet in question:

    Can't get window.status to work in net 4.0
    Tried putting the window.statu code infront of the image display (src) but won't work unless I put return true immediately after it.
    Then the mouse over effects don't work. Stops the mouse over from happening.
    How can I blend the 2 together to get it to creatre the mouse over effect and display the window.status message in net 4.0?

    <a href="javascript:void(0);" onfocus="this.blur();"
    onMouseOver="document.images['About_Us'].src = 'http://www.proamrodeo.com/gif/menu/About_Us-over.gif';
    window.status='Meet Our Beneficiaries.';return true;"
    onMouseOut="document.images['About_Us'].src = 'http://www.proamrodeo.com/gif/menu/About_Us.gif';
    window.status='';return true;"
    onMouseDown="document.images['About_Us'].src = 'http://www.proamrodeo.com/gif/menu/About_Us-down.gif'"
    onMouseUp="document.images['About_Us'].src = 'http://www.proamrodeo.com/gif/menu/About_Us.gif'; window.status='Meet Our Beneficiaries';return true;">
    <img name="About_Us" src="http://www.proamrodeo.com/gif/menu/About_Us.gif" width="90" height="40" vspace="0" border="0" alt="About Us"></a><br>
    Thank You.

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,068
    Thanks
    0
    Thanked 256 Times in 252 Posts
    it's better to use a function to do that:

    function link(img,stat){
    document.images['About_Us'].src =img;
    window.status=stat;
    return true;
    }

    then in each of your links:

    onMouseOver="return link('http://www.proamrodeo.com/gif/menu/About_Us-over.gif','Meet Our Beneficiaries.')"
    onMouseOut="return link('http://www.proamrodeo.com/gif/menu/About_Us.gif','')"
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________


  •  

    Posting Permissions

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