JS技术

用javascript实现随机跳转页面_javascript教程教程

字号+ 作者:H5之家 来源:H5之家 2015-10-03 18:06 我要评论( )

碰到一个用javascript实现随机跳转页面实例,发布出来,共同研究下,或许有用哦。 请看下面的实例 html head titlePlease 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) { thi

碰到一个用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>
Please waiting...
</body>
</html>

 

1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,请转载时务必注明文章作者和来源,不尊重原创的行为我们将追究责任;3.作者投稿可能会经我们编辑修改或补充。

相关文章
  • 用JavaScrpt实现文件夹轻松加密_javascript教程教程

    用JavaScrpt实现文件夹轻松加密_javascript教程教程

    2015-10-09 12:12

  • 用JAVASCRIPT实现折叠菜单效果_Javascript教程

    用JAVASCRIPT实现折叠菜单效果_Javascript教程

    2015-10-02 11:00

  • 用javascript来实现动画导航_Javascript教程

    用javascript来实现动画导航_Javascript教程

    2015-09-26 14:00

  • 用javascript实现随机跳转页面

    用javascript实现随机跳转页面

    2014-11-17 20:00

网友点评