R
rebeccatre
(e-mail address removed) said:
It would be irresponsible to show you how to code a loop that
consumes the entire CPU until you've at least shown that you've
been attempting to use the proper methods correctly.
If you can't figure out how to code a loop that compares the
time, I certainly don't believe you've been able to figure
out the correct way to use setTimeout() and/or setInterval().
Did you try running my example code?
--
Sorry but to clarify, I cannot use setTimeout, not because of syntax
dysfunction or I am not a perfect novice at Javascript, it just is
what it is --- separating the politics from my request, it would be
great if someone could show me a example using whatever technique to
delay execution of functions I specify, such as delay 5 seconds then
execute green(); or alert('hey'); ! Hogging down the system or
causing the Alert box telling me the computer is tilting (consuming
the entire CPU) as you say, is not what I want.