(function(window){ function l(){ }; l.tool={ add :function(el, type, fn, capture) { if(!capture){capture=false;} if (el && el.addeventlistener) { el.addeventlistener(type, fn, capture); } else if (el && el.attachevent) { el.attachevent('on' + type, fn); } }, remove :function(el, type, fn, capture) { ////移除某个对象的某个类或者多个类,类与类之间用空格隔开 if (el && el.removeeventlistener) { // this can throw an uncaught exception in ff try { el.removeeventlistener(type, fn, capture); } catch (ex) {} } else if (el && el.detachevent) { el.detachevent('on' + type, fn); } }, rmclassname:function(org,what){ var arrwhat,arrclass; if(!org||!what){return org;} arrwhat=what.split(" "); arrclass=org.split(" "); if(arrclass.length==1&&arrclass[0]=="") return org; for(var j=0;j1){flagpre=2;} if(curpage+aft+2=pagecount) break; href[href.length]=i; } // 对后半部分进行修正,最后一位进行修正 if(curpage+aft+2