网络编程 | 站长之家 | 网页制作 | 图形图象 | 操作系统 | 冲浪宝典 | 软件教学 | 网络办公 | 邮件系统 | 网络安全 | 认证考试 | 系统进程
Firefox | IE | Maxthon | 迅雷 | 电驴 | BitComet | FlashGet | QQ | QQ空间 | Vista | 输入法 | Ghost | Word | Excel | wps | Powerpoint
asp | .net | php | jsp | Sql | c# | Ajax | xml | Dreamweaver | FrontPages | Javascript | css | photoshop | fireworks | Flash | Cad | Discuz!
当前位置 > 网站建设学院 > 网页制作 > Javascript
网页制作:Dreamweaver教程,FrontPages教程,Javascript教程,HTML教程,CSS教程,心得技巧,DHTML教程,网页特效,Discuz!论坛
本月文章推荐
.Javascript实例教程(19) 使用HoT.
.JavaScript中避免Form重复提交的.
.网页特效:图片随机显示技巧.
.javascript进行客户端数据的校验.
.Javascript制作浮动的工具条.
.JavaScript学习笔记(1)变量的生.
.一个非常实用的javascript读写Co.
.Javascript实例教程(15) 日期函数.
.JavaScript极速狂飙:CSS样式表的.
.JavaScript and CSS.
.Javascript对象定义的几种方式.
.仿Office 2003的工具条.
.网页表单自动填写技术(gmail为例).
.javascript 获得客户端硬件信息.
.对JavaScript的eval()中使用函数.
.Javascript文档生成.
.在IE浏览器中正确显示PNG透明图片.
.根据下拉框选项来实时改变Form目.
.JScript中值类型的封箱与拆箱.
.Javascript实例教程(20) OLE Aut.

用javascript实现随机跳转页面

发表日期:2008-8-18


碰到一个用javascript实现随机跳转页面实例,发布出来,共同研究下,或许有用哦。
请看下面的实例

<html>
<head>
<title>Please waiting...</title>
<script language="javascript">
<!--
function urlList(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z)
{
    this[0]=a;
    this[1]=b;
    this[2]=c;
    this[3]=d;
    this[4]=e;
 this[5]=f;
 this[6]=g;
 this[7]=h;
 this[8]=i;
 this[9]=j;
 this[10]=k;
 this[11]=l;
 this[12]=m;
 this[13]=n;
 this[14]=o;
 this[15]=p;
 this[16]=q;
 this[17]=r;
 this[18]=s;
 this[19]=t;
 this[20]=u;
 this[21]=v;
 this[22]=w;
 this[23]=x;
 this[24]=y;
 this[25]=z;
}
function selectPage(list)
{
    var today=new Date();
    var page=today.getSeconds()%5;
    window.open(list[page],"_self");
}
var choices=new urlList("http://www.finance-articles.com.cn/Consolidation/Debt-Game-Know-the-Rules-to-Play-Well-qnda0156_2.html","http://www.finance-articles.com.cn/Credit/","http://www.finance-articles.com.cn/Consolidation/","http://www.finance-articles.com.cn/Mortgage/","http://www.finance-articles.com.cn/Real-Estate/","http://www.finance-articles.com.cn/Taxes/","http://www.finance-articles.com.cn/Insurance/","http://www.finance-articles.com.cn/Loans/","http://www.finance-articles.com.cn/Investing/","http://www.finance-articles.com.cn/Investing/index4.html","http://www.finance-articles.com.cn/Credit/Bad-Credit-Debt-Consolidation-Loans.html","http://www.finance-articles.com.cn/Investing/How-to-Make-Money-to-Work-for-you-Safely-ktnw075.html","http://www.finance-articles.com.cn/Investing/The-Traits-of-a-Winner-Trader-r3xf053_3.html","http://www.finance-articles.com.cn/Loans/Money-Without-Tension-Cheap-Unsecured-Loan-ta9t09.html","http://www.finance-articles.com.cn/Consolidation/Repay-your-Christmas-Debts-hzky07.html","http://www.finance-articles.com.cn/Loans/Avail-Bad-Credit-Unsecured-Loans-UK-Against-Adverse-Credit-pqyp07_2.html","http://www.finance-articles.com.cn/Loans/index11.html","http://www.finance-articles.com.cn/Insurance/Understanding-Level-Term-Life-Insurance-2gwt012.html","http://www.finance-articles.com.cn/Insurance/index4.html","http://www.finance-articles.com.cn/Insurance/Types-of-Travel-Insurance-j2e70138_3.html","http://www.finance-articles.com.cn/Taxes/index5.html","http://www.finance-articles.com.cn/Taxes/Tax-Keep-It-Low-But-Legal-mgh8059.html","http://www.finance-articles.com.cn/Taxes/Income-Tax-Help-for-Teachers-one308_3.html","http://www.finance-articles.com.cn/Real-Estate/Ljubljana-Property-Investment-in-Slovenia-3c9s012_3.html","http://www.finance-articles.com.cn/Real-Estate/index6.html","http://www.finance-articles.com.cn/Mortgage/What-Are-Bad-Credit-Mortgages-50of012_2.html");
-->
</script>
</head>
<body onLoad="selectPage(choices)">
Please waiting...
</body>
</html>

上一篇:javascript对ListBox的增 删 人气:1289
下一篇:javascript密码强度提示 人气:1209
浏览全部javascript的内容 Dreamweaver插件下载 网页广告代码 祝你圣诞节快乐 2009年新年快乐