Auto Start Page Rotator

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved

Join Date: Jun 2009
Posts: 1
Reputation: businessglobal is an unknown quantity at this point 
Solved Threads: 0
businessglobal businessglobal is offline Offline
Newbie Poster

Auto Start Page Rotator

 
0
  #1
Jun 29th, 2009
I launched the following scripts but only the "Auto Start Page Rotator" page appeared.
Can anyone please check if the codes are correct?

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2. <html><head>
  3. <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><title>Control page</title>
  4.  
  5. </head>
  6. <body>
  7. <script language="JAVASCRIPT">
  8. var Win;
  9. var page_index=0;
  10. var page = new Array();
  11. page[0] = "http://www.trafficswarm.com/cgi-bin/swarm.cgi?493555";
  12. page[1] = "http://www.ts25.com/surf/index.php?surfer=jy1006";
  13. page[2] = "http://www.trafficg.com/supersurf.php?member=jy1006";
  14. page[3] = "http://www.trafficroundup.com/start.php?username=globalteam";
  15. page[4] = "http://www.trafficpods.com/surf/surf.jsp?surfer=businessglob";
  16. page[5] = "http://www.trafficg.com/supersurf.php?member=jy1006";
  17. page[6] = "http://www.hitpulse.com/jsp/surf.jsp?surfer=jy1006";
  18. page[7] = "http://www.hitsafari.com/rotate.php?u=businessglob";
  19. function next_page()
  20. {page_index++;if (page_index == 8)
  21. page_index = 0;
  22. Win.location.replace(page[page_index]);}
  23. </script>
  24. <h1>Auto Start Page Rotator</h1>
  25. <script language="JAVASCRIPT">
  26. Win=window.open(page[0], 'Win','resize=yes,toolbar=yes,status=yes,
  27. scrollbars=yes,screenX=0,screenY=0,width=1000,height=666')setInterval("next_page();",8000);
  28. </script> <br>
  29. </body></html>


Thanks.
Last edited by peter_budo; Jul 1st, 2009 at 1:24 pm. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 954
Reputation: essential will become famous soon enough essential will become famous soon enough 
Solved Threads: 131
Featured Poster
essential's Avatar
essential essential is offline Offline
Posting Shark

Re: Auto Start Page Rotator

 
0
  #2
Jun 29th, 2009
Try this:

JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
  2. "http://www.w3.org/TR/html4/strict.dtd">
  3. <html lang="en">
  4. <head>
  5.  
  6. <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  7. <title>Control page</title>
  8.  
  9. <script type="text/javascript">
  10. <!--
  11. var Win;
  12. var page_index = 0;
  13. var page = new Array();
  14.  
  15. page[ 0 ] = "http://www.trafficswarm.com/cgi-bin/swarm.cgi?493555";
  16.  
  17. page[ 1 ] = "http://www.ts25.com/surf/index.php?surfer=jy1006";
  18.  
  19. page[ 2 ] = "http://www.trafficg.com/supersurf.php?member=jy1006";
  20.  
  21. page[ 3 ] = "http://www.trafficroundup.com/start.php?username=globalteam";
  22.  
  23. page[ 4 ] = "http://www.trafficpods.com/surf/surf.jsp?surfer=businessglob";
  24.  
  25. page[ 5 ] = "http://www.trafficg.com/supersurf.php?member=jy1006";
  26.  
  27. page[ 6 ] = "http://www.hitpulse.com/jsp/surf.jsp?surfer=jy1006";
  28.  
  29. page[ 7 ] = "http://www.hitsafari.com/rotate.php?u=businessglob";
  30.  
  31. var next_page = function() {
  32. page_index = (( page_index === 8 ) ? 0 : page_index );
  33. if ( typeof Win !== "undefined" ) {
  34. Win.location.href = page[ page_index ];
  35. } ++page_index;
  36. };
  37.  
  38. window.onload = function() {
  39. Win = window.open( page[ 0 ], 'Win', 'resize=yes,toolbar=yes, status=yes,scrollbars=yes, screenX=0,screenY=0, width=1000, height=666' );
  40. timer = setInterval( "next_page()", 8000 );
  41. };
  42.  
  43. // -->
  44. </script>
  45. </head>
  46. <body>
  47. <h1>Auto Start Page Rotator</h1>
  48. <br>
  49. </body>
  50. </html>
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC