0

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>
2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by diafol
0

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.