The Daily Click ::. Forums ::. General Chat ::. Light up buttons
 

Post Reply  Post Oekaki 
 

Posted By Message

Buster

BLING COMMANDER

Registered
  03/06/2002
Points
  1545

VIP Member
30th November, 2004 at 22:00:44 -

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.

 

AsparagusTrevor

Mine's a pint of the black stuff

Registered
  20/08/2002
Points
  2364

Game of the Week WinnerHas Donated, Thank You!VIP MemberEvil kliker
30th November, 2004 at 22:31:19 -

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.

 
Image

JP



Registered
  07/06/2003
Points
  1338
1st December, 2004 at 01:29:32 -

HTML is easier, search google for mouseover.

 
Steve Zissou: Anne-Marie, do all the interns get Glocks?

Anne-Marie: No, they have to share one.

Buster

BLING COMMANDER

Registered
  03/06/2002
Points
  1545

VIP Member
1st December, 2004 at 03:20:19 -

I know how to do mouse overs, but this is like triple mouse over.

 

Dr. James MD

Addict

Registered
  08/12/2003
Points
  11941

First GOTW AwardSecond GOTW AwardThird GOTW AwardPicture Me This -Round 26- Winner!
1st December, 2004 at 05:51:44 -

Frontpage. does it perfectly. or Flash, anythings possible in that program

 
Image
http://uk.youtube.com/watch?v=j--8iXVv2_U
On the sixth day God created Manchester
"You gotta get that sand out your vaj!" x13
www.bossbaddie.com

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:

Image

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.

Image Edited by the Author.

 
www.thenatflap.co.uk
   

Post Reply



 



Advertisement

Worth A Click