...">
碰到一个用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>
Word教程网 | Excel教程网 | Dreamweaver教程网 | Fireworks教程网 | PPT教程网 | FLASH教程网 | PS教程网 |
HTML教程网 | DIV CSS教程网 | FLASH AS教程网 | ACCESS教程网 | SQL SERVER教程网 | C语言教程网 | JAVASCRIPT教程网 |
ASP教程网 | ASP.NET教程网 | CorelDraw教程网 |