<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/
javascript" src="Scripts/jquery-1.4.1.js"></script>
<title>jquery随机数-www.jb200.com</title>
<script>
$(function () {
function show() {
var myurl = ['http://www.jb200.com/index.html', 'http://www.jb200.com/dmhao123.html', 'http://v.6.cn/event/qq/schuang.html', 'http://v.6.cn/event/qq/schuang.html'];
//Math.random()*(上限-下限+1)+下限
var i = parseInt(Math.random() * (3 - 0 + 1) + 0);
var fr = $("#frt");
fr.attr("src", myurl[i]);
}
setInterval(show, 6000); // 注意函数名没有引号和括弧!
});
</script>
</head>
<body>
<div class="pop">
<
iframe src="" height="350" id="frt" width="350" frameborder="1"scrolling="no"></iframe>
</div>
</body>
</html>