Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

Gif Animation on Image jquery

$(function(){
  $('img').each(function(e){
    var src = $(e).attr('src');
    $(e).hover(function(){
      $(this).attr('src', src.replace('.gif', '_anim.gif'));
    }, function(){
      $(this).attr('src', src);
    });
  });
});
Comment

PREVIOUS NEXT
Code Example
Javascript :: React native country code yarn 
Javascript :: use variable in function returned by another function 
Javascript :: convert rgb value in hexadecimal system 
Javascript :: Install React Navigation dependencies into main project folder 
Javascript :: js convert if/else statement to switch case 
Javascript :: switch variable scope js 
Javascript :: jsdelivr discord 
Javascript :: javascript how to give variable names inside for loop corresponding to value of iterator javascript 
Javascript :: Detect external link Click javascript 
Javascript :: javascript mvc patetern 
Javascript :: immediate invoke jquery arrow function 
Javascript :: is the g required at the end of a regex expression 
Javascript :: es6 currying 
Javascript :: how to put the value in the fom using javascript 
Javascript :: bad request while authenticating locally with passport-local-mongoose stackoverflow 
Javascript :: html click to copy to clipboard 
Javascript :: how to share variables between routes node 
Javascript :: key being passed as prop react 
Javascript :: runincontext execute function 
Javascript :: path.split is not a function inputRef useForm 
Javascript :: localstorege remove 
Javascript :: get single element typeorm 
Javascript :: jquery set focus on first input which is not readonly 
Javascript :: use chai immutable 
Javascript :: decode hex to string js 
Javascript :: fly: Javascript 
Javascript :: ES6 template literals sum example 
Javascript :: blabla 
Javascript :: convert utc time to specific timezone javascript 
Javascript :: Comparison Primitive operations Methods 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =