<script>
var link_id=-1;
var link_pages = ['page1.php','page2.php','page3.php'];
var next_load_seconds = 4;
var t1;
function links(){
if (link_id == link_pages.length-1)
link_id=0;
else
link_id++;
return link_pages[link_id];
}
function autoLoad(){
$('#data').load(links(),function(){
if (t1) window.clearTimeout(t1);
t1 = window.setTimeout('autoLoad()',next_load_seconds*1000);
});
}
$(function(){
autoLoad();
});
</script>