?? 百度_weeptears吧_bat文件搞定系統(tǒng)所有問(wèn)題!.htm
字號(hào):
if(!e)e=window.event; var tar = e.target || e.srcElement; window.open(tar.src,'_blank'); }; } }}// 構(gòu)造表格AJAX提交參數(shù)// params: [['pName1','pelem1'],['pName2','pelem2'],['pName3','pValue3']]function buildParamDataString(params){ var datas = []; for(var i=0;i<params.length;i++){ var elem = params[i]; if(elem && elem[1]){ //encodeURIComponent // 如果傳的是元素,就取其value屬性值,否則直接取其值 datas.push(elem[0] + "=" + encodeURIComponent((Element.isElem(elem[1]) ? elem[1].value : elem[1]))); } } return datas.join("&");};function changeVersion(v){ var cururl="/f?z=120960861&ct=335544320&lm=0&sc=0&rn=30&tn=baiduPostBrowser&word=weeptears&pn=0"; var reg= /&rs1=[^&]+/; if (reg.exec(cururl)) { cururl = RegExp.leftContext + RegExp.rightContext } window.location.href=cururl+"&rs1="+v; }// end 新增 -------------------------------------var g_bdThreadTitleTxt = 'BAT文件搞定系統(tǒng)所有問(wèn)題! '.replace(/</gi,'<').replace(/>/gi,'>');// 老版function f_click(obj1,obj2){ document.post.rs1.value =""; if(obj1.checked ==true){ obj2.checked = false; } else{ obj2.checked=true; } if (document.post.rs1.checked == true) { document.post.rs1.value = 1; document.getElementById('yzm').innerHTML=yzm_str; document.getElementById('yzm').style.display=""; } else{ if(need_verify==10||len>5000){ document.getElementById('yzm').innerHTML=yzm_str; document.getElementById('yzm').style.display=""; }else{ document.getElementById('yzm').innerHTML=''; document.getElementById('yzm').style.display="none"; } }}function f_submit(){ try{ if(f_check()){ var params = [ ["co",document.post.co], ["ct",document.post.ct], ["tn",document.post.tn], ["word",document.post.word], ["word1",document.post.word1], ["lm",document.post.lm], ["z",document.post.z], ["sc",document.post.sc], ["cm",document.post.cm], ["rn",document.post.rn], ["bs",document.post.bs], ["str2",document.post.str2], ["str3",document.post.str3], ["rs3",document.post.rs3], ["str4",document.post.str4], ["bu",document.post.bu], ["code",document.post.code], ["ti",document.post.ti], ["str1",document.post.str1], ["ch1",document.post.ch1], ["rs1",document.post.rs1] ]; var paramstr = buildParamDataString(params); formApply(paramstr); } }catch(e){} return false;};function f_check() { ls_title = document.post.ti.value; ls_content = document.post.co.value; document.post.ti.value=f_trim(ls_title); document.post.co.value=f_trim(ls_content); if(document.post.ti.value == document.post.ti1.value && document.post.co.value.length < 1) { G("coError").innerHTML = "不允許發(fā)布空貼"; document.post.co.focus(); return false; } if(document.post.ti.value == '' || document.post.ti.value == null) { G("tiError").innerHTML = "標(biāo)題不能為空"; document.post.ti.focus(); return false; } if(document.post.co.value == '' || document.post.co.value == null) { G("coError").innerHTML = "內(nèi)容不能為空"; document.post.co.focus(); return false; } if(need_verify==10){ if(document.post.word1.value == '' || document.post.word1.value == null) { G("yzmError").innerHTML = "驗(yàn)證碼不能為空,請(qǐng)輸入驗(yàn)證碼"; document.post.word1.focus(); return false; } } document.post.str2.value = fr_as_js_tr(); return true;}function formApply(paramsStr){ var url = "/f"; this.popup = null; var postProcess = function(xmlHttp) { var rst = eval("(" + xmlHttp.responseText + ")"); var no = rst.resultNo; var doAction = function(result){ switch(result.getActionType()){ case result.Action_FocusTitle: if(document.post.ti){ document.post.ti.focus(); document.post.ti.value = document.post.ti.value; } break; case result.Action_FocusContent: if(document.post.co){ document.post.co.focus(); } break; case result.Action_ClearYZM: if(document.post.word1){ document.post.word1.value = ""; document.post.word1.focus(); } break; case result.Action_FocusUrl: if(document.post.str1){ document.post.str1.focus(); document.post.str1.value = document.post.str1.value; } break; case result.Action_GoToHead: document.location.hash="pgTop"; break; case result.Action_FlushAndGoToHead: if(document.post.ti){ document.post.ti.value=""; } if(document.post.co){ document.post.co.value=""; } document.location.href = document.location.href.split("#")[0]; break; default: break; } }; if(no == 0) {// 成功 setTimeout(function(){ doAction(rst); },500); }else{ if(rst.isNeedWaitForCheck()){// 等待審核 AlertPopup.alertMessage({width:340,height:165,title:"發(fā)表貼子",messageTitle:"等待審核...", content: rst.getMessage()}, function(){ doAction(rst); document.post.Submit3.disabled = false; return true; }); }else {// 失敗 AlertPopup.alertError({width:340,height:165,title:"發(fā)表貼子",messageTitle:"發(fā)貼失敗", content: rst.getMessage()}, function(){ doAction(rst); document.post.Submit3.disabled = false; return true; }); } } }; document.post.Submit3.disabled = true; new Ajax.Request( url, { method: "post", parameters: paramsStr, onComplete: function(xmlHttp){postProcess(xmlHttp);} } );};r_url=f_escape(window.location.href);function ResetReplyTitle(no, title) { if(no == null||no == ""){ if(title == null || title == '') title_src = g_bdThreadTitleTxt; else title_src = title; } else{ title_src = G(title).value;// title is a id on here var s = title_src.indexOf(":"); title_src = title_src.substring(s+1,title.length); } //刪除末尾可能的空格 if(title_src.lastIndexOf(" ") == title_src.length-1) { title_src = title_src.substring(0,title_src.lastIndexOf(" ")); } document.post.ti.value='回復(fù)' + no + ':' + title_src; document.post.ti1.value='回復(fù)' + no + ':' + title_src; setTimeout(function(){ document.post.co.focus(); document.post.co.value = document.post.co.value; },300); return true;}function f_load(){ if(need_verify==10){ if (document.post.ti.value !="" && document.post.co.value !="") { document.getElementById('yzm').innerHTML=yzm_str; document.getElementById('yzm').style.display=""; } } resetChangedSizeImage();}function f_focus(){ if(need_verify==10){ if(document.getElementById('yzm').innerHTML==null || document.getElementById('yzm').innerHTML==''){ document.getElementById('yzm').innerHTML=yzm_str; document.getElementById('yzm').style.display=""; } } }function f_showVerify(o){ var len; len = getByte(o.value) if(len>5000||need_verify==10){ if(document.getElementById('yzm').innerHTML==null || document.getElementById('yzm').innerHTML==''){ document.getElementById('yzm').innerHTML=yzm_str; document.getElementById('yzm').style.display=""; } }else{ if(document.post.ch1.checked){ document.getElementById('yzm').innerHTML=''; document.getElementById('yzm').style.display="none"; } }}function f_paste(){ var o=document.post.co; f_showVerify(o);}// end 老版// 新版/*function f_click(obj1,obj2){var len = ContentInput ? getByte(ContentInput.getHtml()) : 0; document.post.rs1.value =""; obj2.checked = !obj1.checked; if(document.post.ch1.checked){ SignNameApply.active(); } if (document.post.rs1.checked == true) { document.post.rs1.value = 1; document.getElementById('yzm').innerHTML=yzm_str; document.getElementById('yzm').style.display=""; G("signNamePanel").style.display = "none"; }else{ if(need_verify==10||len>5000){ document.getElementById('yzm').innerHTML=yzm_str;
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -