📄 ali_sp.js
字号:
var historyDrop=null;function getEvent(B){var A=B||window.event;if(!A){var C=this.getEvent.caller;while(C){A=C.arguments[0];if(A&&Event==A.constructor){break}C=C.caller}}return A}var XDragDrop=function(C,D,B){if(!C){return }var E=document.getElementById(C);if(!E){return }this.oDrag=E;this.cont=null;var A=document.getElementById(D);if(!A){this.oDragCtrl=this.oDrag}else{this.oDragCtrl=A}this.oDragCtrl.style.cursor="move";this._init(E,A,B)};XDragDrop.prototype={_init:function(C,B,A){this.oDrag.style.position="absolute";if(A){this.cont=document.getElementById(A)}this.oDragCtrl.onmousedown=function(G){if(objTimer){clearInterval(objTimer)}if(historyDrop&&historyDrop!=C){historyDrop.style.zIndex=998}C.style.zIndex=999;historyDrop=C;if(B.setCapture){B.setCapture()}else{window.captureEvents(Event.MOUSEMOVE)}getEvent(G).cancelBubble=true;var F=getEvent(G).clientX;var E=getEvent(G).clientY;var D=parseInt(C.offsetLeft);var H=parseInt(C.offsetTop);if(!C.offsetLeft){D=parseInt(C.currentStyle.left);H=parseInt(C.currentStyle.top)}B.onmousemove=function(K){var J=getEvent(K).clientX;var I=getEvent(K).clientY;this.parentNode.style.left=D+J-F+"px";this.parentNode.style.top=H+I-E+"px"};B.onmouseup=function(){if(B.releaseCapture){B.releaseCapture()}else{window.releaseEvents(Event.MOUSEMOVE)}B.onmousemove=null;B.onmouseup=null}}},onDrag:function(A){if(typeof A=="function"&&this.oDrag){this.oDrag.attachEvent("onmousedown",A)}},endDrag:function(A){if(typeof A=="function"&&this.oDrag){this.oDrag.attachEvent("onmouseup",A)}},minDrag:function(){if(this.cont){this.cont.style.display="none"}}};(function(){var B=null;var A=null;XDragDropCtrl={toMin:function(D,C){B=D;A=C;if(D.cont){B.cont.style.display="none";A.src="http://img.china.alibaba.com/images/cn/market/myalibaba/levelup/to_max.gif";A.title="\u6700\u5927\u5316\u4f01\u4e1a\u5728\u7ebf";A.onclick=function(){XDragDropCtrl.toMax(B,A)}}},toMax:function(D,C){B=D;A=C;if(B.cont){B.cont.style.display="block";A.src="http://img.china.alibaba.com/images/cn/market/myalibaba/levelup/to_min.gif";A.title="\u6700\u5c0f\u5316\u4f01\u4e1a\u5728\u7ebf";A.onclick=function(){XDragDropCtrl.toMin(B,A)}}},close:function(C){C.oDrag.style.display="none"}}})();var objTimer,i=0;var divLinkDiv;function getMsg(A){divLinkDiv=document.getElementById(A);getLinkMsg();moveDiv()}function getLinkMsg(){try{divLinkDiv.style.top=parseInt(document.documentElement.scrollTop+50,10)}catch(A){}}function moveDiv(){try{objTimer=window.setInterval("resizeLinkDiv()",1)}catch(A){}}function resizeLinkDiv(){try{divLinkDiv.style.top=parseInt(document.documentElement.scrollTop+50,10)}catch(A){}}onscroll=function(){if(objTimer){clearInterval(objTimer)}moveDiv()};function getContactParam(A,C,B){var D=new Alitalkparam();D.uid=B;D.imgObj=document.getElementById(A);D.eventObjs.add(document.getElementById(C));D.docObj=null;D.size=16;return D}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -