2012年3月17日
摘要: /** 全国三级城市联动 js版 wlit.版权所有**/function Dsy(){ this.Items = {};}Dsy.prototype.add = function(id,iArray){ this.Items[id] = iArray;}Dsy.prototype.Exists = function(id){ if(typeof(this.Items[id]) == "undefined") return false; return true;}function change(v){ var str="0"; for(i=0;i< 阅读全文
posted @ 2012-03-17 19:55 WlitSoft 阅读(10090) 评论(3) 推荐(1) 编辑
摘要: 在考试系统中难免会有倒计时提示,我们第一想到的是用js的settimeout但是发现一个问题如果页面刷新则重新倒计时,以下是我的解决方案:1.用settimeout每隔一秒触发一次2.用cookies在cookies中读取剩余时间以下是实现代码:js部分: 1 <script language="javascript" type = "text/javascript"> 2 function GetCookieByName(name) { 3 //获取cookie字符串 4 var strCookie = document.co... 阅读全文
posted @ 2012-03-17 19:36 WlitSoft 阅读(1968) 评论(5) 推荐(0) 编辑