-
setTimeout
Hello
Please help me .I am new to Javascript..and I 'd like you to give me 3 or more examples on "setting time" in oder to move text and images on my web page..I want to learn more on "SETTIMEOUT.."I CAN USE marquee to do that..but please tell me some on "settimeout"functions..thanks
-
The SetTimeout() executes a function, after a given amount of time (in milliseconds):
Code:
//setTimeout('functionName()',Time);
$time = 12000;
$message = 'setTimeout has ended';
setTimeout('display()', $time);
function display() {
document.write($message);
}
display() will be executed after 12 seconds. I don't see why you'd need "3 or more examples," but I guess if you need more, let me know.