• Resolved jkhod

    (@jkhod)


    I’ve coded a few mouseover buttons on my site, but they don’t display until after the first mouseover (just show the alt text). After the first mouseover they display correctly, and work perfectly. Just not sure why they stop displaying when the page is first loaded or refreshed? I’m new to coding, any ideas on what I might be doing wrong?
    My site hasn’t launched yet so there’s no point linking, but here’s an example of the code I’m using:

    <a href="http://www.thehappylist.net/?p=51" onMouseOver= "if (document.images) document.mailinglisticon.src='http://www.thehappylist.net/wp-content/uploads/2015/03/mailinglisticonrollover.jpg';" onMouseOut= "if (document.images) document.mailinglisticon.src='http://www.thehappylist.net/wp-content/uploads/2015/03/mailinglisticon.jpg';"><img src=http://www.thehappylist.net/wp-content/uploads/2015/03/mailinglisticon.jpg" alt="mailing list button" name=mailinglisticon border=0></a>

    Thanks so much!
    Jess.

Viewing 1 replies (of 1 total)
  • Thread Starter jkhod

    (@jkhod)

    I managed to sort this out myself – it was a simple coding error. I was missing the quotation mark to open the last img src section.

Viewing 1 replies (of 1 total)
  • The topic ‘Mouseover (rollover) buttons don't display until the first mouseover’ is closed to new replies.