摘要: function JsLoader(){}; JsLoader.loaded = []; JsLoader.prototype = { _path : null,//要加载的JS的路径 _head : null,//文档对象的head头对象 /** * 主要调用方法. */ require : function(jsPath,callback) ... 阅读全文
posted @ 2011-12-27 12:11 Cat.1988 阅读(367) 评论(0) 推荐(0) 编辑
摘要: functionHighLight(){}; HighLight.options = { id : null, className : null, interval : 255, times : 3000 }; HighLight.prototype = { exe :function(options) { var_options = {};... 阅读全文
posted @ 2011-12-27 12:09 Cat.1988 阅读(185) 评论(0) 推荐(0) 编辑
摘要: function Password(){}; Password.check = function(pwd,tipsDivId) { var id = Password.getResult(pwd); var msg = ["密码过短","密码强度差","密码强度良好","密码强度高"]; var sty = [-45,-30,-15,0]; var col = ["#999... 阅读全文
posted @ 2011-12-27 12:08 Cat.1988 阅读(158) 评论(0) 推荐(0) 编辑
摘要: var drag_=false var D=new Function('obj','return document.getElementById(obj);') var oevent=new Function('e','if (!e) e = window.event;return e') function Move_obj(obj){ var x,y; D(obj).onmous... 阅读全文
posted @ 2011-12-27 12:05 Cat.1988 阅读(145) 评论(0) 推荐(0) 编辑
摘要: function creatediv(divcnt){ for(var i=0;i<divcnt;i++)//创建div数量 { var objdiv = document.createElement("DIV");//创建DIV节点 var objname="shop_" + i;//设置name属性 objdiv.id = obj... 阅读全文
posted @ 2011-12-27 12:04 Cat.1988 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 一、重复操作查询 --where条件得distinct systemdicid作为唯一标识 select * from dmis_zd_systemdic t WHERE typeid = '06012' and t.systemdicid in (select min(systemdicid) f 阅读全文
posted @ 2011-12-20 18:41 Cat.1988 阅读(180) 评论(0) 推荐(0) 编辑
摘要: function substr(str, len){ if(!str || !len){ return ''; } //预期计数:中文2字节,英文1字节 var a = 0; //循环计数 var i = 0; //临时字串 var temp = ''; for(i=0;i255){ //按照预期计数增加2 a+=2; }else{ a++; } ... 阅读全文
posted @ 2011-12-19 20:50 Cat.1988 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 官方网站:http://colorpowered.com/colorbox/ 支持 照片,照片组,幻灯片,ajax,内联 和 iframe 框架。 通过CSS 控制外观,使用用户可以很容易重新定制外观。 不需要更改 ColorBox 的 javascript 文件就可以重新设定其行为。 可以依靠 c 阅读全文
posted @ 2011-12-19 20:08 Cat.1988 阅读(99) 评论(0) 推荐(0) 编辑
摘要: Lazyload是通过延迟加载来实现按需加载,达到节省资源,加快浏览速度的目的。 网上也有不少类似的效果,这个Lazyload主要特点是: 支持使用window(窗口)或元素作为容器对象; 对静态(位置大小不变)元素做了大量的优化; 支持垂直、水平或同时两个方向的延迟。 兼容:ie6/7/8, fi 阅读全文
posted @ 2011-12-16 11:50 Cat.1988 阅读(104) 评论(0) 推荐(0) 编辑
摘要: //隐藏 function hideMessageBar(o,t,i,j,s){ var o = document.getElementById('NtalkerToolbar'); i=j=1;s=o.style; t=setInterval(function(){ o.offsetTop(document.body.clientHeight-34)?(s... 阅读全文
posted @ 2011-12-16 11:43 Cat.1988 阅读(334) 评论(0) 推荐(0) 编辑