Main Page Sitemap

Most viewed

Inception 1.1 working without activation
Just try to be in a bad mood around one of these. Impossible! I was naturally drawn to these because of the bright, eye-catching swirl, not to mention the jumbo sprinkles-encrusted edges! If anything, these should be the SB mascot, because they are everything...
Read more
Belkasoft Outlook Analyzer 1.05 Serial key plus patch
Charlotte sun herald - UFDC Home - All Collection Groups State of Texas - Guidry News Service Material Information Title: Charlotte sun herald Uniform Title: Charlotte sun herald (Charlotte Harbor, Fla. : 1995) Running title: Sun herald Physical Description...
Read more
MP4 Converter 4.5.4 and patch to crack
pDF to TIFF Converter 1.3 Full and activated version thanks for ur reply. am using the Javascript object to pDF to TIFF Converter 1.3 Full and activated version convert to tiff from pdf. code is, Private Sub ConvertToTiff_Click() Dim jso As Object Dim pdDoc...
Read more

Video to GIF 5.2 not need Activation


Kazi Sound Recorder 3.5 License Key included

How to Add/Set Facebook Profile Picture as Video or GIF on How to Install and Setup W3 Total Cache and MaxCDN for Beginners

I realise this answer is late, but I found a rather simple, elegant, and effective solution to this problem and felt it necessary to post it here.

However one thing I feel I need to make clear is that this doesn't start gif animation on mouseover, pause it on mouseout, and continue it when you mouseover it again. That, unfortunately, is impossible to do with gifs. (It is possible to do with a string of images displayed one after another to look like a gif, but taking apart every frame of your gifs and copying all those urls into a script would be time consuming)

What my solution does is make an image looks like it starts moving on mouseover. You make the first frame of your gif an image and put that image on the webpage then replace the image with the gif on mouseover and it looks like it starts moving. It resets on mouseout.

Just insert this script in the head section of your HTML:

$(document).ready(function() { $("#imgAnimate").hover( function() { $(this).attr("src", "GIF URL HERE"); }, function() { $(this).attr("src", "STATIC IMAGE URL HERE"); }); });

And put this code in the img tag of the image you want to animate.

id="imgAnimate"

This will load the gif on mouseover, so it will seem like your image starts moving. (This is better than loading the gif onload because then the transition from static image to gif is choppy because the gif will start on a random frame)

for more than one image just recreate the script:

<script type="text/javascript"> $(document).ready(function() { $("#imgAnimate1").hover( function() { $(this).attr("src", "gif/1303552574110.1.gif"); }, function() { $(this).attr("src", "STATIC IMAGE URL HERE"); }); $("#imgAnimate2").hover( function() { $(this).attr("src", "gif/1302919192204.gif"); }, function() { $(this).attr("src", "STATIC IMAGE URL HERE"); }); $("#imgAnimate3").hover( function() { $(this).attr("src", "gif/1303642234740.gif"); }, function() { $(this).attr("src", "STATIC IMAGE URL HERE"); }); $("#imgAnimate4").hover( function() { $(this).attr("src", "gif/1303822879528.gif"); }, function() { $(this).attr("src", "STATIC IMAGE URL HERE"); }); $("#imgAnimate5").hover( function() { $(this).attr("src", "gif/1303825584512.gif"); }, function() { $(this).attr("src", "STATIC IMAGE URL HERE"); }); }); </script> </head> <body> <img id="imgAnimate1" src="STATIC IMAGE URL HERE" alt="" > <img id="imgAnimate2" src="STATIC IMAGE URL HERE" alt="" > <img id="imgAnimate3" src="STATIC IMAGE URL HERE" alt="" > <img id="imgAnimate4" src="STATIC IMAGE URL HERE" alt="" > <img id="imgAnimate5" src="STATIC IMAGE URL HERE" alt="" > </body>

That code block is a functioning web page (based on the information you have given me) that will display the static images and on hover, load and display the gif's. All you have to do is insert the url's for the static images.



How to Add/Set Facebook Profile Picture as Video or GIF on
How to Install and Setup W3 Total Cache and MaxCDN for Beginners


202
Sitemap