Hi, is it possible to use an animated GIF in a rollover button with javascript?
Hi, is it possible to use an animated GIF in a rollover button with javascript?
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.
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
Repatilian (12-05-2011)
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
You can set the number of animation loops in Photoshop so you don't drive people crazy with "forever"!Code:<li><a href="#nogo" onmouseover="document.images['holder'].src='lighthouse.jpg'" onclick="document.images['holder'].src='lighthouse.gif'"> Lighthouse </a></li>
Repatilian (12-05-2011)
thanks
Bookmarks