/* * 搜索引擎javascript服务类 * @author liuhui 2010-4-22 * @version phpwind 8.0 */ var searcher = { _advanced : ['thread','diary'], start : 0, $ : function(id){ return document.getElementById(id); }, /* 获取搜索类型 */ _getSearchType : function(){ var obj = this.$("searchType"); if(!obj){return ;} return obj.getElementsByTagName("LI"); }, /* 绑定搜索类型点击事件 */ _bindTypeClick : function(){ var elements = this._getSearchType(); if(!elements){return ;} var _this = this; for(i=0;i= 0 ){ help.style.display = ""; }else{ help.style.display = "none"; } this.$("hiddenType").value = type || 'thread'; this._hiddenCalendar(); var _this = this; setTimeout(function(){ _this.searchSubmit(); },0); }, searchSubmit : function (){ //if(this.start > 0){ this.$("searchform").submit(); //} this.start++; }, /* 重置搜索类型class值 */ _resetClass : function (){ var elements = this._getSearchType(); if(!elements){return ;} for(i=0;i