Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

BBS: Re: How do I re-initialize this javascript animation? - September 13, 1998 at 14:05:00

You are here: irt.org | BBS | Re: How do I re-initialize this javascript animation? [This BBS is closed]

Posted by Martin Webb on September 13, 1998 at 14:05:00:

In Reply to: How do I re-initialize this javascript animation? posted by Yvan Gagnon on September 10, 1998 at 06:12:44:

: Hi. I have this image changeout script that triggers a 10-frame javascript animation on another
: layer, and I can't seem to figure out a way to re-initialize it onMouseout so that multiple
: instances of it can't run simultaneously. Each time I trigger the animation onMouseover, it gets
: faster and faster until it just becomes this strobing blur. Here's the script:

Simple answer:

Use a boolean falg that is intially set to false:

var myFlag = false;

And only allow the script to run if the flag is false:

if (!myflag) {
myFlag = true
// rest of code
}
Follow-ups:

You are here: irt.org | BBS | Re: How do I re-initialize this javascript animation? [This BBS is closed]

©2018 Martin Webb