Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

?
Lv 4

Rollover Image Problems?

Today, I just found out that my navigation (which are rollover images), appear all messed up in IE and the image rollover shows another image on my site, rather than the one I want. It's fine in Firefox, though. Does anyone know what the problem is? Here's my site: http://romanwilderness.net./ Thanks!

4 Answers

Relevance
  • Anonymous
    1 decade ago
    Favorite Answer

    Change "id" to a different value for each link.

    <a href="#" onmouseout="document.getElementById("id").src="reg.png" onmouseover="document.getElementById("id").src="new.png"><img src="reg.png" id="id" /></a>

  • 5 years ago

    I suggest u to use dreamweaver , since it is more simpler than writing css. Moreover, dreamveaver provides u directly an option for image rollover, so the prog. part is done by the software itself.. enjoy

  • Anonymous
    1 decade ago

    I can't tell you what the exact error is, but I can tell you how to fix it: Use conditional comments to make it work in IE. http://msdn.microsoft.com/en-us/library/ms537512.a...

  • 1 decade ago

    i would suggest using CSS background images instead of javascript to do that.

    so

    #navbar a{

    background: url("normal_pic.png");

    }

    #navbar a:hover{

    background:url("second_pic");

    }

Still have questions? Get your answers by asking now.