
July 13th, 2004, 09:33 PM
|
|
|
|
Join Date: Apr 2007
Posts: 367
Time spent in forums: 3 m 30 sec
Reputation Power: 2
|
|
|
RE: Java Help Timer
This isn't the prettiest, but works.
php Code:
Original
- php Code |
|
|
|
<?php ?> <html> <head> <title></title> <script langguage="javascript"> <!-- var pages= new Array("a.html", "b.html", "c.html"); var i=0; function startrotation(){ if(i==pages.length){ i=0; } top.iframe1.location=pages[i]; i++; setTimeout("startrotation()",2000) } //--> </script> </head> <body onload="setTimeout('startrotation()',2000);"> <IFRAME NAME="iframe1" SRC=""> </body> </html> <?php ?>
[edit]Ignore the php tags. the code tag here loses all formatting.[/edit]
|