(function(sogouExplorer){
sogouExplorer.extension.setExecScriptHandler(function(s){eval(s);});(function(){
var GLS = {}; GLS.startObj = null; GLS.allow = true; GLS.str =
\"\"; GLS.div = null; GLS.mousedown = function(evt) { evt = evt ||
window.event; if (evt) { GLS.startObj = evt.target ||
evt.srcElement; if (GLS.startObj && GLS.startObj.parentNode
&& (GLS.startObj == GLS.div || GLS.startObj.parentNode ==
GLS.div)) { //GLS.allow = false; } else { oldx = isIe ? evt.clientX
: evt.pageX; } } }; GLS.mouseup = function(evt) { if (!GLS.allow) {
GLS.allow = true; return; } //GLS.div.style.display = \"none\"; evt
= evt || window.event; var obj = null; var selectedStr = \"\"; if
(evt) { obj = evt.target || evt.srcElement; selectedStr =
window.getSelection ? window.getSelection().toString() :
document.selection.createRange().text; selectedStr =
selectedStr.replace(/^\\s*/, \"\").replace(/\\s*$/, \"\"); } if
(selectedStr == GLS.str) { setTimeout(check, 10); return; } try {
GLS.str = \"\"; //if (GLS.allow && (obj == GLS.startObj ||
obj.parentNode == GLS.startObj || obj == GLS.startObj.parentNode ||
obj.parentNode == GLS.startObj.parentNode || selectedStr.length 0)
{ GLS.str = selectedStr; } } GLS.search(evt); } catch(e){} };
GLS.search = function(evt) { if (GLS.str.length > 0) { var
windowWidth = 0; //窗口的宽 var windowHeight = 0; //取得窗口的宽 if
(self.innerWidth) { windowWidth = self.innerWidth; windowHeight =
self.innerHeight; } else if (document.documentElement &&
document.documentElement.clientWidth &&
document.documentElement.clientHeight) { windowWidth =
document.documentElement.clientWidth; windowHeight =
document.documentElement.clientHeight; } else if (document.body) {
windowWidth = document.body.clientWidth; windowHeight =
document.body.clientHeight; } if (windowWidth == 0 || windowHeight
== 0) { return; } var rX, rX, wT, wH; if (isIe) { rY =
(document.documentElement.scrollTop || document.body.scrollTop) +
evt.clientY; rX = (document.documentElement.scrollLeft ||
document.body.scrollLeft) + evt.clientX; if (evt.clientX >=
oldx) { wT = (evt.clientX + sDivWidth) - windowWidth; wH =
(evt.clientY + sDivHeight) - windowHeight; rY = (wH > 0) ? rY -
wH : rY + 5; rX = (wT > 0) ? rX - wT : rX + 5; } else { rY =
(evt.clientY > sDivHeight) ? rY - sDivHeight : rY + 5; rX =
(evt.clientX > sDivWidth) ? rX - sDivWidth : rX + 5; } } else {
rY = (document.documentElement.scrollTop > 0) ?
document.documentElement.scrollTop : document.body.scrollTop; rX =
(document.documentElement.scrollLeft > 0) ?
document.documentElement.scrollLeft : document.body.scrollLeft; if
(evt.pageX >= oldx) { wT = (evt.pageX + sDivWidth) - rX -
windowWidth; wH = (evt.pageY + sDivHeight) - rY - windowHeight; rY
= (wH > 0) ? evt.pageY - sDivHeight : evt.pageY + 5; rX = (wT
> 0) ? evt.pageX - sDivWidth : evt.pageX + 5; } else { rY =
(evt.pageY - sDivHeight > rY) ? evt.pageY - sDivHeight : rY + 5;
rX = (evt.pageX - sDivWidth > rX) ? evt.pageX - sDivWidth : rX +
5; } } GLS.div.style.top = rY + \"px\"; GLS.div.style.left = rX +
\"px\"; var tmp = (GLS.str.length > 80)? GLS.str.substring(0,80)
: GLS.str; searchBtn.href = [\"//www.sogou.com/sogou?query=\",
encodeURIComponent(tmp), \"&pid=\", pid,
\"&ie=utf8\"].join(\"\"); setTimeout(check, 10); } else {
GLS.div.style.display = \"none\"; } }; GLS.init = function() { var
ua_text = window.navigator.userAgent.toLowerCase(); if
(ua_text.indexOf(\"msie\") != -1) { isIe = true; } else { isIe =
false; } GLS.div = document.createElement(\"div\"); GLS.div.id =
\"sogoumovesearch\"; GLS.div.className = \"movesearch\";
GLS.div.style.visibility = \"hidden\"; GLS.div.style.zIndex =
zIndex; GLS.div.onclick = function(){this.style.display =
\"none\";}; GLS.div.onmouseup = function(){GLS.allow = false;};
document.body.appendChild(GLS.div); copyBtn =
document.createElement(\"a\"); copyBtn.id = \"sogoucopybtn\";
copyBtn.className = \"extcopy\"; copyBtn.href = \"#\";
copyBtn.innerHTML = \"复制\"; //copyBtn.onclick =
function(){sendCmd(\"copy\",GLS.str);GLS.div.style.display =
\"none\";return false;}; GLS.div.appendChild(copyBtn); searchBtn =
document.createElement(\"a\"); searchBtn.className = \"extsearch\";
searchBtn.target = \"_blank\"; searchBtn.href = \"#\";
searchBtn.onclick = function(){pingback(\"cl\", 2);};
searchBtn.innerHTML = \"搜索\"; GLS.div.appendChild(searchBtn);
initCopy(); }; var searchBtn = null; var copyBtn = null; var pid =
\"AGyTg\"; var sDivWidth = 116; //检索框的宽度 var sDivHeight = 28; var
copyWidth = 59; var copyHeight = 28; var oldx = 0; var zIndex =
2147483647; var flashPath = \"//www.sogou.com/js/vr/zcb.swf\";
var flashcopier = null; var isIe = null; //返回信息给background.html
function sendCmd(cmd, data, callback){ try{
sogouExplorer.extension.sendRequest({cmd: cmd, data: data},
callback); }catch(e){ consolelogstart(\"error of cmd start:\"+e); }
return false; } function initCopy() { if (!isIe) {
initZeroClipboard(); } else { copyBtn.onclick =
function(){window.clipboardData.setData(\"Text\",
GLS.str);pingback(\"cl\", 1);return false;}; GLS.div.style.display
= \"none\"; GLS.div.style.visibility = \"\"; } } function
initZeroClipboard() { var script =
document.createElement(\"script\"); script.type =
\"text/javascript\"; //script.src =
\"//www.sogou.com/js/vr/ZeroClipboard.v.1.0.js\"; script.src =
sogouExplorer.extension.getURL(\"zcb.js\");
document.body.appendChild(script); } function check() { GLS.str =
window.getSelection ? window.getSelection().toString() :
document.selection.createRange().text; GLS.str =
GLS.str.replace(/^\\s*/, \"\").replace(/\\s*$/, \"\"); if
(GLS.str.length > 0) { GLS.div.style.display = \"\";
pingback(\"pv\"); } else { GLS.div.style.display = \"none\"; } }
function pingback(type, act) { var url = [\"//pb.sogou.com/\",
type,
\".gif?uigs_productid=webapp&type=ext_movesearch&uigs_t=\",
(new Date()).getTime(), \"&pid=\", pid]; if (GLS.str.length
< 40) { url.push(\"&query=\");
url.push(encodeURIComponent(GLS.str)); } if (act) {
url.push(\"&act=\"); url.push(act); } (new Image()).src =
url.join(\"\"); } function bind(elem, evt, func){ if (elem){ return
elem.addEventListener?elem.addEventListener(evt,func,false):elem.attachEvent(\"on\"+evt,func);
} } function consolelogstart(a){ //alert(a); } //页面加载
window.setTimeout(function(){ GLS.init(); bind(document,
\"mousedown\", GLS.mousedown); bind(document, \"mouseup\",
GLS.mouseup); }, 0); })();
})(window.external.sogouExplorer(window,1));
(function(sogouExplorer){
sogouExplorer.extension.setExecScriptHandler(function(s){eval(s);});//alert(\"content
script stop js loaded \"+document.location); if (typeof
comSogouWwwStop == \"undefined\"){ var SERVER =
\"//ht.www.sogou.com/websearch/features/yun1.jsp?pid=sogou-brse-596dedf4498e258e&\";
window.comSogouWwwStop = true; setTimeout(function(){ if
(!document.location || document.location.toString().indexOf(SERVER)
!= 0){ return; } function bind(elem, evt, func){ if (elem){ return
elem.addEventListener?elem.addEventListener(evt,func,false):elem.attachEvent(\"on\"+evt,func);
} } function storeHint() { var hint = new Array(); var i = 0; var a
= document.getElementById(\"hint_\" + i); var storeClick =
function(){sogouExplorer.extension.sendRequest({cmd: \"click\"});}
while(a) { bind(a, \"click\", storeClick);
hint.push({\"text\":a.innerHTML, \"url\":a.href}); i++; a =
document.getElementById(\"hint_\" + i); } return hint; } if
(document.getElementById(\"windowcloseit\")){
document.getElementById(\"windowcloseit\").onclick = function(){
sogouExplorer.extension.sendRequest({cmd: \"closeit\"}); } var flag
= false; document.getElementById(\"bbconfig\").onclick =
function(){ flag = true; sogouExplorer.extension.sendRequest({cmd:
\"config\"}); return false; } document.body.onclick = function(){
if (flag) { flag = false; } else {
sogouExplorer.extension.sendRequest({cmd: \"closeconfig\"}); } };/*
document.getElementById(\"bbhidden\").onclick = function(){
sogouExplorer.extension.sendRequest({cmd: \"hide\"}); return false;
} */ var sogoutip = document.getElementById(\"sogoutip\"); var tip
= {}; tip.word = sogoutip.innerHTML; tip.config =
sogoutip.title.split(\",\"); var hint = storeHint();
sogouExplorer.extension.sendRequest({cmd: \"show\", data:
{hint:hint,tip:tip}}); }else{ if
(document.getElementById(\"windowcloseitnow\")){
sogouExplorer.extension.sendRequest({cmd: \"closeit\", data:
true}); } } }, 1); } })(window.external.sogouExplorer(window,7));
复制搜索
上海正汉管业有限公司专业生产销售线缆连接头电缆防水夹紧接头、防水软管及接头、防水防爆编织软管。广泛应用与机床产品,包装食品机械电力机车工程安装灯具船舶油田自动化仪器仪表等领域。我们并为您提供外围布线的**解决方案,方便您的安装,帮助您改善产品的美观,提高您产品的质量。我们还将为您提供优质的技术支持,方案解决,售后服务等。