Problem with script for interactive button rollover link RRS feed

  • Question

  • On initial page load, the alt text shows rather than the button graphic. After moving the mouse over it once, the rollover effect occurs

    <a href="http://www.picalo.com/about.html"><img id="about Picalo" alt="Why No Graphic until mouse over" border="0" onmouseout="this.src='payevent.gif'" onmouseover="this.src='secretary.gif'" src="payment.gif" /></a>

    Found this code in the forum


    Thanks for your time. Already searched FAQ
    Shoot for the moon. There's always the stars if you miss.
    Wednesday, August 24, 2011 5:09 PM


All replies

  • Because you haven't uploaded the image http://www.picalo.com/payment.gifgets a 404.

    FYI, the interactive buttons are not that well coded and you are almost always better off using css than scripting for rollovers.

    Free Expression Web Tutorials
    For an Expression Web forum with without the posting issues try expressionwebforum.com
    • Marked as answer by Sac. Jack Thursday, August 25, 2011 2:44 AM
    Wednesday, August 24, 2011 5:27 PM
  • Very basic.  Alt text shows because it can't show the image.  It can't show the image because it's not there.

    http://www.picalo.com/payment.gif does not exist on the server.

    Wednesday, August 24, 2011 5:28 PM
  • Opps...darn typos.....sb payevents. Sorry, I should have caught it.

    Thanks for the tip on css
    Shoot for the moon. There's always the stars if you miss.
    Thursday, August 25, 2011 2:46 AM