Probably a simple question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mr. Teatime

    Probably a simple question




    The 'more information' parts are shown as visited links for some reason
    (grey), when the code says 'onmouseout = orange'. Once the mouse has passed
    over them they go to their correct colour - orange (yellow when mouse is
    over). can anyone help
    TIA

    --
    My music - http://www.jonathandalton.com


  • Ivo

    #2
    Re: Probably a simple question

    "Mr. Teatime" wrote[color=blue]
    > http://www.teatime.pwp.blueyonder.co.uk/music3.htm
    >
    > The 'more information' parts are shown as visited links for some reason
    > (grey), when the code says 'onmouseout = orange'. Once the mouse has[/color]
    passed[color=blue]
    > over them they go to their correct colour - orange (yellow when mouse is
    > over). can anyone help
    > TIA[/color]

    This is from your source:
    <a class="sub" href="#" onclick="toggle ('item5');retur n false;">
    <span
    onmouseout="thi s.style.color = '#FF9900';"
    onmouseover="th is.style.color = '#FFFF00';"[color=blue]
    >More Information</span></a>[/color]

    When the page is first loaded and no mouse has yet moved over or out
    anywhere, the text is rendered as any link to # would: to the current page,
    hence visited. Also, it doesn't look you need that span element at all. You
    can set the event handlers directly on the a element.
    HTH
    Ivo


    Comment

    Working...