load an animated gif without playing the animation

Go down

load an animated gif without playing the animation

Post by Ahmed.K on Sat Jul 12, 2014 11:41 am

Why this code doesn't work?

Code:
jQuery(document).ready(function(){
jQuery('.lastpost-avatar').each(function() {
    setInterval(function() {
jQuery(this).find('img').attr('src', jQuery(this).find('img').attr('src'))
},1)
});
});

But it works fine here:
http://jsfiddle.net/MEaWP/6/

any ideas?

Ahmed.K
Forumember

Posts : 349
Reputation : 4
Language : English

Back to top Go down

Re: load an animated gif without playing the animation

Post by Ahmed.K on Sun Jul 13, 2014 11:28 pm

Nobody knows?

Ahmed.K
Forumember

Posts : 349
Reputation : 4
Language : English

Back to top Go down

Re: load an animated gif without playing the animation

Post by SLGray on Mon Jul 14, 2014 2:41 am

Do you have JavaScript Management activated?


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 43501
Reputation : 3094
Language : English
Location : United States

http://fmthemesdesignteam.forumotion.com/

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum