R
RC-
I have been trying to figure out how to stop a function from running after 3
seconds have passed; I can not, for the live of me, figure out how to get
the funtion to stop running!
Here is the function:
/* Rotate selected objects */
function rotateObjects() {
for (var i = 0; i < pos.length; i++) {
pos += inc; objects.visibility = 'visible';
objects.left = (r * Math.cos(pos)) + xoff
objects.top = (r * Math.sin(pos)) + yoff;
}
rotateTimer = setTimeout("rotateObjects()", 75);
}
I've tried everyting I can think of to get the function to stop; I've tried
Break, Return, setInterval, setTimeout, blah, blah, blah.
Any help will be great!
TIA
RC-
seconds have passed; I can not, for the live of me, figure out how to get
the funtion to stop running!
Here is the function:
/* Rotate selected objects */
function rotateObjects() {
for (var i = 0; i < pos.length; i++) {
pos += inc; objects.visibility = 'visible';
objects.left = (r * Math.cos(pos)) + xoff
objects.top = (r * Math.sin(pos)) + yoff;
}
rotateTimer = setTimeout("rotateObjects()", 75);
}
I've tried everyting I can think of to get the function to stop; I've tried
Break, Return, setInterval, setTimeout, blah, blah, blah.
Any help will be great!
TIA
RC-