Forum Moderators: open
Here's the code I came up with:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>Rotating Pages</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<script type="text/javascript">
function rotate() {
if (currentPage < totalPages) currentPage++;
else currentPage = 1;
parent.rotateFrame.location.href = prefix + currentPage + '.htm';
setTimeout('rotate()', lullTime)
}
var prefix = 'rotate';
var currentPage = 0;
var totalPages = 3;
var lullTime = 10000;
</script>
</head>
<frameset onload="rotate()">
<frame name="rotateFrame" src="rotate1.htm">
</frameset>
</html>
If it's not an indexed page, you can just use an http-refresh:
<meta http-equiv="refresh" CONTENT="10; url=page_two.html"> ...
<meta http-equiv="refresh" CONTENT="10; url=page_three.html"> ...
<meta http-equiv="refresh" CONTENT="10; url=back_to_page_one.html">
Not recommended for main pages as search engines apparently don't like a lot of redirection.