Mouseover (rollover) buttons don't display until the first mouseover
-
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.
- The topic ‘Mouseover (rollover) buttons don't display until the first mouseover’ is closed to new replies.