Page is a not externally linkable
- Code, Content, and Presentation
---- setInterval loop
Because num2 is declared as a local variable... local to the my() function. When my() exits, num2 is lost.
You need to declare num2 as global, as you do with num.
Brought to you by WebmasterWorld: http://www.webmasterworld.com