We help IT Professionals succeed at work.
Get Started

Fix image rollovers (preload not working)

globalwm asked
Last Modified: 2008-02-01
I think I have a small issue with my rollover buttons (in CSS) with the "on" images not downloading ahead of time. Can someone take a look at this and see what's needed?

The site uses a single header file that handled the MM_preloadImages javascripts. In the body (still in header file), I call:

<body leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0" onload="MM_preloadImages('grafix/button1_on.jpg','grafix/button2_on.jpg','grafix/button3_on.jpg','grafix/Organic-On.jpg','grafix/tableft10.gif','grafix/tabright10.gif')">

This header file also links to a external CSS (Styles.css) which references:

    #tabs10 a {
      background:url("grafix/tableft10.gif") no-repeat left top;
      padding:0 0 0 4px;
        text-align: center;
    #tabs10 a span {
      background:url("grafix/tabright10.gif") no-repeat right top;
      padding:5px 23px 4px 24px;
        text-align: center;

tabright10.gif and tableft10.gif do not seem to preload though.  Any ideas?
Watch Question
This problem has been solved!
Unlock 1 Answer and 19 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE