hi,
Right heres whats going on, I'm making a website and I want roll over buttons, easy enough right? WRONG. So this is what I was wanting, say I've got a button, as soon as the cursor is over the button it will play an animation (the button lights up), then I want the button to stay lit up until the mouse is taken off the button then I want it to play the fade back to original button animation.
How could I do this? I'd pefer to do it in like html or somthing, but if thats too hard I'll just do it in flash.
Well I don't know anything about HTML and shit, but I got a generic kinda theory.
If you have animated gifs that didn't loop, and you had one for the button fading on, and one fading off, have the fading off as the button when the mouse isn't over it, and fading on when it is.
When you put the mouse on the button, the fading on animation would play, when you take the pointer off, it would revert to the original, hence playing the fading off animation.
One thing with that though, the lights would all fade off when they load up.
Pete Nattress Cheesy Bits img src/uploads/sccheesegif
Registered 23/09/2002
Points 4811
1st December, 2004 at 05:54:15 -
trev has it - that's how i'd do it. to stop them fading in when the page loads you'd just have something like this:
where startup.gif is a static gif of how it looks when nothing is over it, and litup and fadeout are animated gifs. do a search to get a proper javascript function to do the changing, mine won't work very well.