首页学院源码字体下载软件电脑书| 素材图片模版壁纸酷站图标笔刷纹理|小游戏博客QQ表情投票计数器JoyRssMail
动态网站制作指南
首页|网络编程|站长之家|网页制作|图形图象|操作系统|冲浪宝典|软件教学|网络办公|手机学院|邮件系统|网络安全|认证考试
ASP源码 | .Net源码 | PHP源码 | JSP源码 | JAVA源码 | CGI源码 | VB源码 | C++源码 | Delphi源码 | PB源码 | VF源码 | 汇编 | 服务器
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教程

用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 批量版JS加亮器
·用javascript控制复选框的个数
·javascript设定延时
·URL编码转换,escape() encodeURI() encodeURIComponent()
·javascript自定义函数
·10分钟学会Google Map API (一)
·javascript类设计模式
·javascript中close()函数
·利用JAVASCRIPT让IFRAME框架的高度自适应
·Javascript中函数传引用被覆盖问题

浏览全部javascript的内容 PS笔刷下载 39种不同语言在线翻译
文章搜索服务





邮件订阅服务
输入你的邮件地址,你将不会错过任何关于<Javascript教程>的内容
Powered by JoyRssMail

网页制作文章分类

本月文章推荐
. 用Popup对象构建网页右键菜单.
. javascript实现datagrid客户端chec.
. JavaScript获取选中文本.
. javascript实现仿新浪信息提示效果.
. JavaScript与ActionScript通讯(Ex.
. 为JavaScript的String增加Trim函数.
. JAVASCRIPT里的函数递归用法.
. Javascript利用闭包循环绑定事件.
. JavaScript多风格浮动在线QQ客服(1.
. Javascript实例教程(11) 隐藏scrip.
. 在IE中使用JavaScript.
. Javascript实例教程(7) 利用Javasc.
. 说说掌握JavaScript语言的思想前提.
. 让JavaScript拯救HTML5的离线存储.
. 用flash+javascript实现网页中复制.
. Javascript中判断润年简单的代码实.
. 用JavaScript实现网页上的浮动广告.
. 一种常用效果的实现(Javascript的子.
. Javascript实例教程(20) OLE Autom.
. js变量作用域及可访问性的探讨.
. Javascript实例教程(19) 使用HoTMe.
. 通过JAVAScript实现页面自适应.
. 使用 JavaScript 获取 table 行号和.
. js滚动的进度条的3种编程方式.
. javascript实现四个重叠DIV切换功能.
. JavaScript-给iframe里的内容定义样.
. Javascript Chinaz的不间断滚动新闻.
. javaScript事件使用方法.
. Java和JavaSript的不同与相似.
. JavaScript 无缝上下左右滚动加定高.
  最新网站源码 最新软件下载
2009-7-4 84网址站 v4.10
2009-7-4 仿webmasterhome 网站收录查询 v
2009-7-4 NOCC v1.8
2009-7-4 易和阳光购物商城 v1.4 Access F
2009-7-4 OK伯乐招聘求职系统
2009-7-3 MyBB v1.4.8
2009-7-3 miniBB v2.3
2009-7-3 Modoer多功能点评系统 v1.1.0 Bu
2009-7-3 Modoer多功能点评系统 v1.1.0 Bu
2009-4-4 SharePoint Designer 2007
2009-3-20 Internet Explorer 8 简体中文正
2009-3-20 Internet Explorer 8 简体中文正
2009-3-20 Internet Explorer 8 简体中文正
2009-3-20 Internet Explorer 8 简体中文正
2009-3-20 Internet Explorer 8 简体中文正
2009-3-20 Internet Explorer 8 简体中文正
2009-3-20 Internet Explorer 8 简体中文正
2009-3-20 Internet Explorer 8 简体中文正
  发表评论
姓 名: 验证码: [ 查看评论 ]
内 容:
 
站长工具:Google PR查询|网站速度测试|CSS在线编辑器|OPEN参数生成器|弹出式窗口代码产生器|密码登录生成器|在线按钮生成器|Meta标签生成器|邮箱图标在线生成|多色彩特效字代码生成器|网页代码调试器|在线FTP登陆|Flash取色器|配色代码对照表|配色辞典|CSS生成器|CSS在线压缩|广告代码|框架网页代码生成器|js/vbs加密|md5加密|进制转换|UTF-8 转换工具|在线调色板|Html转换js|Html转换asp|Html转换php|Html转换perl
实用工具:汉字翻译拼音|拼音字典|在线翻译|天气预报|火星文|在线网速测试|符号对照表|个税计算|公积金贷款计算|购房银行按揭利率计算|实时汇率查询换算|经典小工具|汉字简繁转换|普通单位换算|公制单位换算|生辰老黄历|国内电话区号|国家代码与域名缩写|文字加密解密|元素周期表|健康查询|世界时间|全国各地车牌查询|全国车辆交通违章查询|万年历|二十四节气|汉字横竖排版|手机号码查询|计算器|ip搜索
广告刊登 | 版权声明 | 联系我们 | 加入收藏 | RSS订阅
Copyright © 2000-2009 www.knowsky.com All rights reserved | 沪ICP备05001343号
ホームページ制作 不動産検索システム 求人情報
防水工事·改修工事 フットサル大会 探偵
SEO対策 コーチ ホームページ作成
過払い請求 現金化 債務整理 現金化