Topic awaiting preservation: Timing Rollover Animations (Page 1 of 1) |
|
---|---|
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
posted 07-30-2003 16:08
http://www.twistedport.com/misc/rollproblems/ code: function waittrade(name,on,off,delayon,delayoff){
|
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 07-30-2003 16:25
PS: I suspect a lot of your questions can be answered by looking on some of the threads here or following some of the links: |
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
posted 07-30-2003 16:32
*gasp* |
Paranoid (IV) Inmate From: France |
posted 07-30-2003 17:06
Petskull: you made a typo, remove the quotes around the delay, like this code: setTimeout('document.'+name+'.src = pics['+on+'].src', delayon ); Now it should work. |
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
posted 07-30-2003 20:04
wow, poi- with a little modification, that worked beautifully!! |
Paranoid (IV) Inmate From: France |
posted 07-31-2003 10:16
That was just a typo. You script can be handy for navigations bars. code: function waittrade( ) Further improvements could be done to tackle special cases where you wish to set several images to the same state at the same time. To do so, you could replace the name argument by a list of names joined by a space / semicolon / smurf / ... and split it once in the trade function to process every single image |
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
posted 08-05-2003 15:15
whoa!! that is so fucking cool!!!!! |