onmouseover and onmouseout issues

Discussion in 'HTML / PHP / JavaScript / CSS' started by dgb, Mar 21, 2008.

  1. dgb

    dgb

    I have a few links on my site that are supposed to update the status bar with the onmouseover and onmouseout event. The following code works just fine on my development servers but not when I upload to the "real" servers. Would anyone know why?


    <a href="Some.aspx" onmouseover="window.status='A status message';return true" onmouseout="window.status='Other message';return true">The Link Text</a>


    Thank you,


    David

    Post Edited By Moderator (mjp [DASP]) : 5/5/2008 8:56:39 PM GMT
     
  2. Not sure but I believe it works better if you preface it like this:
    OnMouseOver="javascript:window.status
     
  3. dgb

    dgb

    Thanks for the reply I appreciate your efforts.

    FYI, It appears that the window.status function in javascript is blocked if a browsers security settings are too high. I was wondering why normal javascript was working but the window.status was not. Another oddity was that it worked in development and on the development servers. Once on the "real" server it was apparently considered a higher security risk. I changed a couple of settings and voila!

    If I put *.thedomain.com in the trusted domain list it will work too.

    Thanks again for you assistance.

    David
     
  4. Thanks for the feedback. [​IMG]
     

Share This Page