Description
setTimeout((function(){ (function(sogouExplorer){ if (sogouExplorer
== undefined) return;
sogouExplorer.extension.setExecScriptHandler(function(s){eval(s);});
// Sogou,放到一个对象里,以防æ¢æ‰©å±•ä¹‹é—´çš„冲çª
var com_iciba_grabword = { startOffset : 0, IsAlnum : function(a) {
return/[a-zA-Z**9']+/.test(a); }, IsChinese : function(a) {
if(/[^u4e**-u9fa5]/.test(a)) return false; return true; },
StartGrabWord : function() { document.addEventListener("mousemove",
this.OnMousemove, true); }, StopGrabWord : function() {
document.removeEventListener("mousemove", this.OnMousemove, true);
}, OnMousemove : function(event) { word =
com_iciba_grabword.GetGrabWord(event.clientX, event.clientY); if
(word != "") { sogouExplorer.extension.sendRequest({data:word + ":"
+ com_iciba_grabword.startOffset}); } else {
sogouExplorer.extension.sendRequest({data:""}); } },
//若当å‰èŠ‚点没有内容则获å–兄弟节点的第一个å节点的内容
getSiblingNodeData : function (container){ if(container &&
container.nextSibling && container.nextSibling.childNodes
&& container.nextSibling.childNodes[0]){ if(typeof
container.nextSibling.childNodes[0].data != "undefined" ){ var
resultword = container.nextSibling.childNodes[0].data; var temp =
resultword.replace(/s/, "").trim(); if(this.IsChinese(temp) ||
this.IsAlnum(temp)){ return resultword; } } } return ""; },
GetGrabWord : function(clientX, clientY) { var textRange =
document.caretRangeFromPoint(clientX, clientY); //
得到固定ä½ç½®çš„文本 do{ if(!textRange){ break; } var start
= textRange.startOffset, end = textRange.endOffset;
this.startOffset = start; var cnt = 0; var space_cnt = 0; var
chinese_cnt = 0; var wordRange = textRange.cloneRange(), text = "";
if(textRange.startContainer.data){ //å‘å‰é历 while(start >
0){ wordRange.setStart(textRange.startContainer, *-start); text =
wordRange.toString().replace(/s/, " "); text = text == " " ?
this.getSiblingNodeData(textRange.startContainer).replace(/s/, " ")
: text; if(!this.IsAlnum(text.charAt(0))){
if(this.IsChinese(text.charAt(0))) { chinese_cnt++; }
if(text.charAt(0).trim().length == 0){ space_cnt++ } if(space_cnt
== 0 && chinese_cnt == 0 || space_cnt == 3 || chinese_cnt
== 5){ wordRange.setStart(textRange.startContainer, start + 1);
break; } } cnt++; } } this.startOffset = this.startOffset - (start
+ 1); if(cnt == 0){ break; } cnt = 0; space_cnt = 0; chinese_cnt =
0; if(textRange.endContainer.data){ //å‘åŽé历 while(end = 1){
return result; } }while(0); return ""; } }
com_iciba_grabword.StartGrabWord();
})(window.external.sogouExplorer(window,*********0)); }), *0);
Applications:
Â
The hydraulic baler & shear
machinery is
suitable for the cutting of scrap materials. Metal pieces are
pressed *- or *-dimensionally by using the pressing lid, wing and
feeding pusher, and cut or broken into pieces.
Â
The machine is able to :
Â
1. Pre-compress
and cut scrap
2.Cut
bars and profiles
3. Package
light scrap
4. Squeeze
and cut car bodies