onMouseOut issue

Discussion in 'JavaScript' started by deluxmilkman, Oct 5, 2007.

  1. #1
    onMouseOver works, but onMouseOut doesn't.
    What am I missing?


    
    <a href="html.html" onMouseOver="parent.status='LOAD HTML VERSION';return true" onMouseOut="parent.status=' ';retuen true" target="bottom">HTML_VERSION</a>
    
    HTML:
    Thanks
     
    deluxmilkman, Oct 5, 2007 IP
  2. phd

    phd Active Member

    Messages:
    496
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    60
    #2
    it is typo mistake
    it should be,


    <a href="html.html" onmouseover="parent.status='LOAD HTML VERSION';return true;" onmouseout="parent.status=' ';return true;" target="bottom">HTML_VERSION</a>
    Code (markup):
    -Better to use small letters for tags
     
    phd, Oct 5, 2007 IP
  3. KatieK

    KatieK Active Member

    Messages:
    116
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    58
    #3
    I think PHD's quite right. I just wanted to point out that XHTML doctypes require only lower case in element attributes - hence the "onMouseOver" becomes "onmouseover".

    Also, note that "return" is spelled correctly in PHD's onmouseout attribute.
     
    KatieK, Oct 5, 2007 IP