|
Q334 How can I cycle through several HTML files with a timeout set between each page?
irt.org | Knowledge Base | JavaScript | Timeout | Q334 [ previous next ]
Q334 How can I cycle through several HTML files with a timeout set between each page?
You'll need to use a frameset which reloads one of the frames with another document:
<SCRIPT LANGUAGE="JavaScript"><!--
function loadOne() {
window.frames[0].location.href = 'apage.html';
setTimeout("loadTwo()",5000);
}
function loadTwo() {
window.frames[0].location.href = 'bpage.html';
setTimeout("loadThree()",5000);
}
function loadThree() {
window.frames[0].location.href = 'cpage.html';
}
setTimeout("loadOne()",5000);
//--></SCRIPT>
|
|
|
Copyright © 1996-2008 irt.org, All Rights Reserved.