View Full Version : Is it possible to use an animated GIF in a rollover button with javascript?
Repatilian
12-04-2011, 06:51 AM
Hi, is it possible to use an animated GIF in a rollover button with javascript?
djr33
12-04-2011, 05:52 PM
There's nothing special about an animated gif-- it's just a gif, which is just a type of image. So, yes, you can use it in a rollover image exactly as you would do with any other image.
The one problem might be that if it is a very large file, then it might take a while to load. But aside from that, it'll be like any other image.
auntnini
12-04-2011, 08:34 PM
I'm an animated GIF nut (the poor man's Flash). See for instance Chanit at http://www.chanit.com/ -- where it starts off with a static version and then animates on rollover. And -- at http://www.auntnini.com/new/index.htm -- attached to text links are both omouseover for static JPEG and onclick for the animated GIF
<li><a href="#nogo" onmouseover="document.images['holder'].src='lighthouse.jpg'" onclick="document.images['holder'].src='lighthouse.gif'"> Lighthouse </a></li>
You can set the number of animation loops in Photoshop so you don't drive people crazy with "forever"!
Repatilian
12-05-2011, 07:18 AM
thanks
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.