Bug Tracker

Opened 12 years ago

Closed 12 years ago

#7125 closed bug (worksforme)

Source attribute in ie7

Reported by: avirto Owned by:
Priority: undecided Milestone: 1.4.3
Component: attributes Version: 1.4.2
Keywords: attr, src Cc:
Blocked by: Blocking:


Could you tell me if there any way to use function hover with source attribute change?

$('.artur').hover(function(){ $(this).attr('src','img/arturOn.png'); }, function(){ $(this).attr('src','img/artur.png'); });

This works in almost all browser but not in IE7. I tried to put the long URL but it still doesn't work. Thank you for your help. I hope this is a correct place to ask such question.

Change History (1)

comment:1 Changed 12 years ago by addyosmani

Resolution: worksforme
Status: newclosed

I've reproduced your original test case here: http://jsfiddle.net/addyosmani/wDd7W/ and tested across IE7, IE8, IE9 and FireFox.

The hover function appears to be working fine, even using a long image URL as I have in my version of the test case. Please check your code to ensure that there isn't anything additional you are attempting to do which could be breaking the code.

Note: See TracTickets for help on using tickets.