Probably a simple question

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

  1. Mr. Teatime

    Mr. Teatime Guest

    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
    Mr. Teatime, Jul 16, 2004
    1. Advertisements

  2. Mr. Teatime

    Ivo Guest

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