Probably a simple question

Discussion in 'Javascript' started by Mr. Teatime, Jul 16, 2004.

  1. Mr. Teatime

    Mr. Teatime Guest

    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 passed
    over them they go to their correct colour - orange (yellow when mouse is
    over). can anyone help
    TIA
     
    Mr. Teatime, Jul 16, 2004
    #1
    1. Advertisements

  2. Mr. Teatime

    Ivo Guest

    This is from your source:
    <a class="sub" href="#" onclick="toggle('item5');return false;">
    <span
    onmouseout="this.style.color = '#FF9900';"
    onmouseover="this.style.color = '#FFFF00';"
    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
     
    Ivo, Jul 16, 2004
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.