<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>测试</title>
<script>
function checkValue(obj)
{
var url=new Array("rettlin","hbsyy","leshun","yytfyy","szxwy","huqinwish","LIHONGGE","xiaonihua","kspq","yongji","sxyyj","fydlyy","userid289886","userid272340","tzslqdgyyjcc","jlgcjx","kbsjdshnbbsc","hhcc","hdjx50","fyshfjxzz","tzsyygypc","hzzywhypsx","wzsqbfs","useridd5154","useridd5152","useridd4750","useridd4492","useridd4331","useridd4323","useridd3981","useridd3483","useridd3213","xyjj006","xyjj005","xyjj003","useridd2984");
var html = "";
for(var i=0;i<parseInt(obj);i++)
{
html+="<iframe src='http://"+url[Math.round(Math.random()*url.length,0)]+".idyan.com/'></iframe>";
}
document.getElementById('idPage').innerHTML=html;
}
</script>
</head>
<body>
<select onchange="checkValue(this.value)">
<script>
for(var i=1;i<1000;i++)
{
document.write("<option value="+i+">"+i+"</option>");
}
</script>
</select>
<br>
<span id="idPage"></span>
</body>
</html>
文章来源:
http://www.cnblogs.com/wangdetian168/archive/2008/11/06/1327890.html
posted on 2010-09-30 12:29
sanmao 阅读(124)
评论(0) 编辑 收藏