ËѺü-Öйú×î´óµÄÃÅ»§ÍøÕ¾ (2024)

ÍøÒ³

  • ÍøÒ³
  • ÐÂÎÅ
  • ÒôÀÖ
  • ͼƬ
  • ÊÓƵ
  • µØͼ
  • ֪ʶ

'; } else { keywords = ret[0].substring(ret[0].indexOf('[') + 1, ret[0].lastIndexOf(']')); if (keywords) keywords = keywords.split(", "); else keywords = []; hh += '

    '; var si = 1; if (revsd > 1) si = 2; var reth = handlelines(ret[si], 0, keywords, si); hh += reth[0]; hasWeb = reth[2]; reth = handlelines(ret[3 - si], reth[1], keywords, 3 - si); hh += reth[0]; tlines = reth[1]; hh += '

'; hh = hh.replace(/undefined/g, ""); } hh += '

¹Ø±ÕËѹ·ÖÇÄÜÌáʾ

'; hh += '

'; if (sug$("sugmaindivname")) { sug$("sugmaindivname").innerHTML = hh; if (tlines == 0 && keywords.length > 0) Wb(); else { if (sug$("sugmaindivname").style.display == "none") pingBack("show_s"); sug$("sugmaindivname").style.display = "block"; if (sug$('suggimg2')) sug$('suggimg2').src = sug$('suggimg2').src.replace('down', 'up'); if (needIfm) { sug$('inthefront').style.height = iframeHeight + "px"; sug$('inthefront').style.display = "block"; } } } } this.handleContent = handleContent; this.revs = function (th) { if (revsd == 1) revsd = 2; else revsd = 1; handleContent(oldresult); } function getContent(keyword, showspace) { //if !web return if (globalsearchformaction.indexOf("www.sogou.com") == -1) return; if ($sForm.w) $sForm.w.value = normalRid || 0; if (SugPara['enableSug'] && enableSug) { if ((!showspace) && (keyword == "")) { Wb(); SugPara['isSug'] = false; return; } if (oqy.replace(/\s/g, "").replace(/ /g, "") && (oqy == keyword)) { if (oldresult) handleContent(oldresult); return; } SugPara['isSug'] = false; oqy = keyword; if (xmlhttp1) { try { xmlhttp1.destroy(); } catch (e) { } xmlhttp1 = null; } var newStrComment = encodeURIComponent(keyword); var domain = SugPara['domain'] || "w.sugg.sogou.com"; var url = "http://" + domain + "/sugg/suggestajaj.jsp?key=" + newStrComment + "&type=" + sugType + "&pr=" + (SugPara['productId'] || sugType); var tt = new Date().getTime(); if (newStrComment.replace(/\s/g, "").replace(/ /g, "") == "") url += "&rd=" + tt; xmlhttp1 = new sAjaj(url); } else { SugPara['isSug'] = false; Wb(); oqy = "uaofwequroasjdklf"; } } this.getContent = getContent;//click one function cc(ss, aobj) { aobj.href += "&_ast=" + Math.round(new Date().getTime() / 1000); document.oncontextmenu = sdf; var hh = sug$(inputid); var tmp = ""; var cobj = sug$("keyword" + ss); if (cobj) tmp = cobj.getAttribute("keys").toLowerCase(); hh.value = tmp; Wb(); hh.focus(); SugPara['isSug'] = true; if (clickWeb(cobj) == "") pingBack('sb'); SugPara['isSug'] = false; } this.cc = cc; function clickWeb(cobj) { var web = ""; if (cobj) web = cobj.getAttribute("web"); if (web) { cline = 0; pingBack("c_nav"); return web; } return ""; } function kb(s) { var x = 0; var y = 0; while (s) { x += s.offsetLeft; y += s.offsetTop; s = s.offsetParent; } return [x, y]; } this.ovo = function (cur) { cline = cur; for (var i = 0; i < tlines; i++) { if (i == cur) { sug$("keyword" + i).style.background = "#F1F1F1"; } else { sug$("keyword" + i).style.background = "#ffffff"; } } } function sdf(ev) { ev = ev || window.event; if (ev.preventDefault) ev.preventDefault(); else ev.returnValue = false; if (ev.stopPropagation) ev.stopPropagation(); else ev.cancelBubble = true; } var bak; function press(ev) { if (!SugPara['enableSug']) return; ev = ev || window.event; sdf(ev); if ((ev.keyCode == 9) || (ev.keyCode == 38) || (ev.keyCode == 40)) return false; else bak = sug$(inputid).value; if (ev.keyCode == 13 && submited) { submited = false; return false; } if (sug$(inputid).value == "") enableSug = true; getContent(sug$(inputid).value, false); } function onlyNum(ev) { ev = ev || window.event; if (ev.keyCode == 13) { submited = true; return; } if (!SugPara['enableSug']) return; if (!enableSug) return; if (!sug$("sugmaindivname"))return; if (sug$("sugmaindivname").style.display == 'none') return; var tmp; var clineObj; if (ev.keyCode == 40 || ev.keyCode == 9) // key = down or key = tab { sdf(ev); if (cline < tlines - 1) { cline++; } else if (cline == tlines - 1) { cline = tlines; } else { cline = 0; } } else if (ev.keyCode == 38) //key= up { sdf(ev); if (cline == -1) cline = tlines; if (cline >= 0) { cline--; } } if (ev.keyCode == 40 || ev.keyCode == 9 || ev.keyCode == 38) { that.ovo(cline); clineObj = sug$("keyword" + cline); if (clineObj) tmp = clineObj.getAttribute("keys").toLowerCase(); else tmp = bak; sug$(inputid).value = tmp; if (cline == tlines || cline == -1) { $sForm.w.value = normalRid || 0; SugPara['isSug'] = false; } else if ($sForm.w) { $sForm.w.value = suggestRid || 0; SugPara['isSug'] = true; } return false; } } var sugPings = new Array(); //ping back function pingBack(act) { if (globalsearchformaction.indexOf("www.sogou.com") == -1) return; var s1 = "http://61.135.188.217:8080/c.jpg"; var s2 = "http://pb.sogou.com/sugg.gif"; var url = "?w=" + encodeURIComponent(sug$(inputid).value) + "&k=" + bak + "&type=" + sugType + "&s="; if (SugPara['isSug']) url += "t"; else url += "f"; if (cline != -1) url += "&cline=" + cline; if (act) url += "&act=" + act; url += "&r=" + new Date().getSeconds(); var V = sugPings.length; sugPings[V + 1] = new Image(); sugPings[V + 1].src = s2 + url; }//disable sug function disableSug() { Wb();setCaretPosition(document.getElementById('query'),cursorPos); enableSug = false; pingBack("dis"); return false; } this.disableSug = disableSug;function reCursorPos(){cursorPos = getCursortPosition(document.getElementById('query'));}this.reCursorPos = reCursorPos; function sug$(objName) { if (document.getElementById) return document.getElementById(objName); else return document.all[objName]; }//function getCursortPosition(ctrl) {var CaretPos = 0;// IE Supportif (document.selection) {ctrl.focus();var Sel = document.selection.createRange();Sel.moveStart('character', -ctrl.value.length);CaretPos = Sel.text.length;}// Firefox supportelse if (ctrl.selectionStart || ctrl.selectionStart == '0')CaretPos = ctrl.selectionStart;return (CaretPos);}//function setCaretPosition(ctrl, pos){if(ctrl.setSelectionRange){ctrl.focus();ctrl.setSelectionRange(pos,pos);}else if (ctrl.createTextRange) {var range = ctrl.createTextRange();range.collapse(true);range.moveEnd('character', pos);range.moveStart('character', pos);range.select();}} }(); $sForm.query.onkeydown = sugCls.ali; var onoff = sugCls.onoff;

ËѺü-Öйú×î´óµÄÃÅ»§ÍøÕ¾ (2024)
Top Articles
Latest Posts
Recommended Articles
Article information

Author: Melvina Ondricka

Last Updated:

Views: 5763

Rating: 4.8 / 5 (68 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Melvina Ondricka

Birthday: 2000-12-23

Address: Suite 382 139 Shaniqua Locks, Paulaborough, UT 90498

Phone: +636383657021

Job: Dynamic Government Specialist

Hobby: Kite flying, Watching movies, Knitting, Model building, Reading, Wood carving, Paintball

Introduction: My name is Melvina Ondricka, I am a helpful, fancy, friendly, innocent, outstanding, courageous, thoughtful person who loves writing and wants to share my knowledge and understanding with you.