Posts: 14207 Joined: 10/7/2003 From: Berkshire, UK Status: offline
Using animated gifs more than once per page - 2/27/2005 15:36:39
Why would I want to do that?
It's possible to use an animated gif as a button so that when you mouseover, the button moves. Kind of a 'poor man's Flash menu' that doesn't need Flash installed.
Be aware though that browsers handle it in different ways.
If your animation loops constantly then all the browsers will render it as a button with no problem. Your visitors may decide to strangle you though.
If your animation is set up to run once then stop, the results you will get are as follows:
Internet Explorer: Each time you mouseover a button, the animation will run once and then stop. Exactly as required.
Opera: The animation will run once and then stop but if the image moves sideways (ie, from one side of the button to the other) depending on the width of the bit that moves, it leaves a trail of itself all the way across.
Firefox: My favourite browser but boy does it muck this one up. You can mouseover as many buttons as you like but only the first one you hit will animate, the rest just sit there. It ignores the fact there are multiple gifs and runs only one instance. Not at all what is required (although I can just about guess which of the OF members are muttering that it's just fine by them. )
_____________________________
If it ain't broke..... fix it until it is. GAWDS Now where did I put that Doctype?