Jquery code working in all browsers apart from FF
Posted
by alan
on Stack Overflow
See other posts from Stack Overflow
or by alan
Published on 2010-04-14T04:08:41Z
Indexed on
2010/04/14
4:13 UTC
Read the original article
Hit count: 253
Hi,
I have written the following jquery sitting in the head tags of my HTML
It is supposed to bring the image that is being hovered over to full opacity and slide another image over it from the right, then return when un-hovered.
<script type="text/javascript">
$(function() { $('ul#img-nav li').css({ "opacity": .5 });
$('ul#img-nav li').hover(function() { $(this).stop(true).animate({"opacity":1}); $(this).children('.overlay').stop(true).animate({"left" : "18px" });
}, function() { $(this).stop(true).animate({"opacity":.5}); $(this).children('.overlay').stop(true).animate({"left" : "180px" });
}); });
This works fine in Safari, Chrome, IE (7,8) but not in FF 3.6.
Any suggestions why this might be?
Many thanks
© Stack Overflow or respective owner