Closed Thread Icon

Preserved Topic: I need a pause between one of my roll-overs: (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=17828" title="Pages that link to Preserved Topic: I need a pause between one of my roll-overs: (Page 1 of 1)" rel="nofollow" >Preserved Topic: I need a pause between one of my roll-overs: <span class="small">(Page 1 of 1)</span>\

 
PhotoChild
Bipolar (III) Inmate

From: The Moldy, Rainy State
Insane since: Aug 2000

posted posted 08-14-2000 03:39

I have a multi-picture roll-over, and I need some kind of time spacer between the roll-over frames so it actually looks like an aperture closing/opening. Does anyone have a JavaScript line code I can use to do this? Thanks!
http://www.focallimelight.com/mainmenu.html

Neil

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 08-14-2000 05:11

yeah what you need is a setTimeout statement.
all a setTimeout does in schedule an event, it works like this

setTimeout('whatYouWantToDo','whenInMs')

the timing is in milliseconds so what you want to do is call them like something like this:

setTimeout('document[nameofimage].src = document[newimage].src','200');




Walking the Earth like Kane

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 08-14-2000 18:35

You don't need quotes around the number (it will still work anyway though).

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 08-14-2000 19:53

No you do not need them but most people who do this professionally use the convention of wrapping anything that is not a variable in quotes. It's a good practice.


Walking the Earth like Kane

PhotoChild
Bipolar (III) Inmate

From: The Moldy, Rainy State
Insane since: Aug 2000

posted posted 08-14-2000 21:42

Thanks guys! I'll give it a try and see if it works. I'm a little confused as to where I should put it, (as in before the picture load in the script, or whatever), but if I'm still having problems I'll check back - Thanks again! <img border=0 align=absmiddle src="http://www.ozones.com/forum/wink.gif">

DocOzone
Maniac (V) Lord Mad Scientist
Sovereign of all the lands Ozone and just beyond that little green line over there...

From: Stockholm, Sweden
Insane since: Mar 1994

posted posted 08-15-2000 09:11

Hiya Child! Check out this simple example page at http://www.ozones.com/flourish.html - it's a 5 frame animation done using javascript.

Your pal, -doc-

« BackwardsOnwards »

Show Forum Drop Down Menu