<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620" />
<title>page refresh</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<script>
//<![CDATA[
var a= [ 'page1.php', 'page2.php' ];
var i=0;
var t;
function webs(){ //loop link
if (i >= a.length) i = 0;
return a[i++];
}
function loopShow(){ //show link at <div id="test"></div>
$('#test').load(webs(),function(){
if (t) window.clearTimeout(t);
t = window.setTimeout('loopShow()',3000);
});
}
$(function(){
loopShow();
});
//]]>
</script>
</head>
<body >
<div id="test" style="margin-right:auto;margin-left:auto;width:400px;height:200px;border:solid green 1px;"></div>
</body>
</html>