SitePoint Sponsor |
|
User Tag List
Results 1 to 1 of 1
Thread: DHTML recursive methods
-
Mar 14, 2001, 20:44 #1
- Join Date
- Mar 2001
- Location
- London
- Posts
- 7
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Can anyone tell me whats wrong...
I'm trying to get an object to move itself around the window using a recursive method call. Everything works until I try and slow down the movement using a setTimeout.
The code looks something like this...
function myObject(){
this.blahblah;
this.move=move;
}
function move(){
this.blahblah;
setTimeout("this.move()",50);
}
without the timeout I get the movement but its too quick to really be an animation - if you know what I mean.
Cheers
Bookmarks