Try this
Code:
<!DOCTYPE HTML>
<html>
<head>
<script type="text/javascript">
/*EDIT THIS STUFF*/
var url=new Array();
url[0]="http://www.dynamicdrive.com";
url[1]="http://www.dynamicdrive.com/forums";
var timeout = 10000;
/*STOP EDITTING*/
var int=self.setInterval("clock()",timeout);
var timer = "0";
var arraylength = url.length;
function clock() {
if(timer == arraylength) {
timer = "0";
}
document.getElementById('frame').src = url[timer];
timer++;
}
</script>
</head>
<body>
<iframe src="http://www.dynamicdrive.com/forums/" id="frame" height="500px" width="1500px">If you can see this, your browser doesn't support IFRAME</iframe>
</body>
</html>
This bit (YELLOW IN FULL CODE)
HTML Code:
/*EDIT THIS STUFF*/
var url=new Array();
url[0]="http://www.dynamicdrive.com";
url[1]="http://www.dynamicdrive.com/forums";
var timeout = 10000;
/*STOP EDITTING*/
Just specify all the urls like this
url[0]="URL";
Then add one nmber on for each url. The first one must be zero.
var timeout = 10000; is the amount of time between the changes. 10000 is ten seconds 1000 is 1 second and so on.
Hope this helps
Keyboard1333
Bookmarks