摘要:iframe輪播不同網頁
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<title>最新消息</title>
<script>
i=0;
k=0;
function man()
{
web = new Array("http://tw.yahoo.com/","http://www.google.com.tw/","http://www.pchome.com.tw/");
k = i % 3;
// alert(web[k]);
document.getElementById('book').src = web[k];
i++;
setTimeout("man()",3000);
}
</script>
<style type="text/css" >
</style>
</head>
<body onload="man()" >
<iframe id="book" ></iframe>
</body>
<a href="#" onClick="man();" >開始</a>
<a href="http://www.blueshop.com.tw/" onClick="clearTimeout(timer);" target="book" >停止</a>
</html>