[jQuery] Re: Very Small Script Not Working in IE 7

2009-03-16 Thread DLee
That works great guys. Thanks a heap! On Mar 16, 9:29 am, errant wrote: > Hi. First, make sure events are attached to elements and firing ( $ > (".sidebar a").mouseover(function(){ alert(this) }; or smth like > this). Second, there are nice method called > hover:http://docs.jquery.com/Events/ho

[jQuery] Re: Very Small Script Not Working in IE 7

2009-03-16 Thread errant
Hi. First, make sure events are attached to elements and firing ( $ (".sidebar a").mouseover(function(){ alert(this) }; or smth like this). Second, there are nice method called hover: http://docs.jquery.com/Events/hover#overout which combines mouseover and mouseout. On 16 мар, 10:12, DLee wrote:

[jQuery] Re: Very Small Script Not Working in IE 7

2009-03-16 Thread Paul Mills
Hi, You have a trailing comma at the end of the parameter for the animate commands - it's not needed. I think IE treats it as invalid JS so ignores the command. So try it like this: $(".sidebar a").mouseover(function(){ $(this).animate({ marginLeft: "10px" }, 400 ); }); Paul On Mar 16, 7