Forum Moderators: open
function(){
if{var!=true){
your function as you have in now
var=true;
}
}
the only tricky part is if you want to set the var back equal to false after it's done and how you do that depends on how your function runs
Here's what I was doing wrong. I had a series of setTimeout() functions that called sub functions to handle the fading and switch images at the correct time. But I forgot to use setTimeout() to change the global variable. When I did that, it worked perfectly.
Thanks again.