JavaScript
smwd1314
这个作者很懒,什么都没留下…
展开
-
JS定时任务封装
[code="js"] /** * 定时任务 * 间隔时间,执行次数,要带的参数,要执行的函数. */ var TimingTask = function(time,count,param,fun){ this.id = -1; //编号 this.exectionCount = 0; //执行了多少次 if(typeof time === 'function'){...原创 2012-10-09 15:25:48 · 268 阅读 · 0 评论 -
Ajax封装
[code="js"] /** * Ajax封装 */ var Ajax = function(){ this.isIE = !+ [ 1, ] ? true : false; this.xmlHttpList = []; }; Ajax.prototype = { ajaxConnection : 0, getXmlHttp : function( count )...原创 2012-10-09 15:26:03 · 78 阅读 · 0 评论 -
JS平滑移动滚动条
[code="js"] /** * 平滑移动滚动条 * 如果是IE就直接跳吧.慢死了. */ var phydgdt = function(){ this.w = document.body.scrollWidth; //滚动条的总宽度 this.h = document.body.scrollHeight; //滚动条的总高度 this.x = document.bo...原创 2012-10-09 15:26:15 · 228 阅读 · 0 评论