Side navigation
#7125 closed bug (worksforme)
Opened October 07, 2010 10:37AM UTC
Closed October 07, 2010 06:47PM UTC
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: |
Description
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.
Attachments (0)
Change History (1)
Changed October 07, 2010 06:47PM UTC by comment:1
resolution: | → worksforme |
---|---|
status: | new → closed |
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.