...">
论坛交流
首页办公自动化| 网页制作| 平面设计| 动画制作| 数据库开发| 程序设计| 全部视频教程
应用视频: Windows | Word2007 | Excel2007 | PowerPoint2007 | Dreamweaver 8 | Fireworks 8 | Flash 8 | Photoshop cs | CorelDraw 12
编程视频: C语言视频教程 | HTML | Div+Css布局 | Javascript | Access数据库 | Asp | Sql Server数据库Asp.net  | Flash AS
当前位置 > 文字教程 > javascript教程教程
Tag:验证,特效,入门,实例,验证,表单,特效,正则表达式,跑马灯,document,函数,代码,getElementByID,菜单,图片,视频教程

用javascript实现随机跳转页面

文章类别:javascript教程 | 发表日期:2008-10-5 17:48:12

碰到一个用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密码强度提示 人气:4630
下一篇:javascript对ListBox的增 删 人气:4134
视频教程列表
文章教程搜索
 
Javascript推荐教程
Javascript热门教程
看全部视频教程
购买方式/价格
购买视频教程: 咨询客服
tel:15972130058