I am building a rotating page. For URLs. The problem is that the page does not reload a different URL when you refresh the page, and I want it to load a different URL when someone enters the site. I have tried different coding and nothing seems to work. Here is the code.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii">
<title>Rotate Marketing</title>
<script type="text/javascript">
<!--
var Win;
var page_index = 0;
var page = new Array(0);
page[ 0 ] = "http://www.homebiz.usaloe.com";
page[ 1 ] = "http://www.makethatmoney.usaloe.com";
page[ 2 ] = "";
page[ 3 ] = "";
page[ 4 ] = "";
page[ 5 ] = "";
page[ 6 ] = "";
page[ 7 ] = "";
var next_page = function() {
page_index = (( page_index === 8 ) ? 0 : page_index );
if ( typeof Win !== "undefined" ) {
Win.location.href = page[ page_index ];
} ++page_index;
};
window.onload = function() {
Win = window.open( page[ 0 ], 'Win', 'resize=yes,toolbar=yes, status=yes,scrollbars=yes, screenX=0,screenY=0, width=1000, height=666' );
timer = setInterval( "next_page()", 10000000 );
};
// -->
</script>
</head>
<body>
</body>
</html>