I have a website that I want to rotate URLs. I want it to rotate a different URL on refresh. I have changed the code around, and cannot set the timer to only refresh or get a different page to load. Can someone assist me with this?

<!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>
Member Avatar for diafol

Hoi, wrong forum - go to javascript /dhtml /ajax

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.