<html>
<head>
<title>jh</title></head>
<frameset rows="*,8*" bordercolor=FFFFFF >
<frame name="left" src="a.htm">
<frame name="right" src="b.htm">
</frameset>
<body>你可以設定你自己的src</body>
</html>
<head>
<title>jh</title></head>
<frameset rows="*,8*" bordercolor=FFFFFF >
<frame name="left" src="a.htm">
<frame name="right" src="b.htm">
</frameset>
<body>你可以設定你自己的src</body>
</html>
就是做一个方法
改变该页面的location.href
:PP
數組中存放網頁名然後用 random 產生隨機數最後window.location.href = (Array[random])
<a href="javascript:Linkto('http://www.sina.com.cn')">sina.com.cn</a><SCRIPT LANGUAGE=javascript>
function Linkto(url){
window.open(url,"winName")
}
</SCRIPT>只要使用相同的窗口名就會在同一個窗口中打開網頁