Hi there,
I am trying to get an iframe to load different local pages at a given interval.
I have something like
Is there like a timer sort of function that I can use to make this iframe loop through this array and display the html pages one by one (looping back to the first element after reaching the end)?
I am trying to get an iframe to load different local pages at a given interval.
I have something like
Code:
<script language="javascript">
function rotate() {
var urls= new Array (2);
urls[0]="page0.html";
urls[1]="page1.html";
urls[2]="page2.html";
document.getElementById('displayFrame').src = URLS[0];
}
</script>
Is there like a timer sort of function that I can use to make this iframe loop through this array and display the html pages one by one (looping back to the first element after reaching the end)?