Drag Search (Javascript)

//**************************************************************************
// DragSearchHandler For Google
//
// Daum Communications 
// Front End Technology Center, Contents Front End Technology TFT 
// By.. wjlee - (2009.02.19)  /  Lst Modify : 2009.03.24
//
// Modified By Kjwon15 at 2011-02-04
//**************************************************************************

__jsDragSearchHandler = (function() {
	try{

		var DragSelectionRange, DragSelectionTxt, DragSelectionTxtOld, DragSelectionTxtHtml, DragSelectionBtn, DragNewRange;
		var DragPos, DragSelectionLayer, DragChkO, DragDispChk;
		var DragSchIdPos = "DragSchLayerPos";
		var DragSchIdLay = "DragSchLayer";
		var OPERA=navigator.userAgent.indexOf("Opera");
		
		_jsAddEvent = function(object, type, listener) {	
			if(object.addEventListener) {if(type=='mousewheel')type='DOMMouseScroll'; object.addEventListener(type, listener, false)}
			else { object.attachEvent("on"+type, listener); }
		}
		_jsStopEvent = function(event) {
			var e=event || window.event;
			if(e.preventDefault) {e.preventDefault(); e.stopPropagation(); }
			else {e.returnValue = false; e.cancelBubble = true;}
		}
		_jsRemove = function(element) {
			element = document.getElementById(element);
			element.parentNode.removeChild(element);
			return element;
		}	
		_jsGetStyle=function(el, style) {
			var value = el.style[style];
			if(!value) {
				if(document.defaultView && document.defaultView.getComputedStyle && OPERA == -1)  {
					var css = document.defaultView.getComputedStyle(el, null);
					value = css ? css[style] : null;
				}  else if (el.currentStyle) {
					if( style == "backgroundPosition" ) value = el.currentStyle["backgroundPositionX"] + " " + el.currentStyle["backgroundPositionY"] ;
					else  value = el.currentStyle[style];
				}
			}
			return value == 'auto' ? null : value;
		}
		_jsTrim = function(s) { return s.replace(/(^\s*)|(\s*$)/g, "") }

		_jsDragHandler = function(event) {
			try {
				DragSelectionTxtOld = DragSelectionTxt;
				if (DragSelectionLayer || DragSelectionBtn) _jsCleanSelection();
				
				if(window.getSelection) {
					DragSelectionRange = window.getSelection();
					DragSelectionTxt = DragSelectionRange.toString();
					DragSelectionTxtHtml = DragSelectionTxt
				} else if(document.selection) {
					DragSelectionRange = document.selection.createRange();
					DragSelectionTxt = DragSelectionRange.text.toString();
					DragSelectionTxtHtml = DragSelectionRange.htmlText;
				}		
				DragSelectionTxt = _jsTrim(DragSelectionTxt);

				if ((DragSelectionTxt != "")&&(DragSelectionTxt != DragSelectionTxtOld)&&(DragSelectionTxt.length > 1)) {	
					_jsGetStrChk(event);
					if (DragChkO) {										
						_jslayerHandler();
						_jsStopEvent(event);
					} else {
						_jsCleanSelection();
					}
				} else {
					_jsCleanSelection();
				}
			} catch (e) { _jsCleanSelection(); }
		}

		_jsGetStrChk= function(event) {
			var strChkL = DragSelectionTxtHtml.length;
			DragChkO = true;
			if (DragSelectionTxt.indexOf(" ") > 0) {
				if(DragSelectionTxt.length > 10) DragChkO = false;
			} else {
				if(DragSelectionTxt.length > 20) DragChkO = false;
			}
			if (DragChkO) {			
				if (navigator.appName == "Netscape") {
					_event = event;
					_nodeName = _event.target.nodeName;
				} else {
					_event = window.event;
					_nodeName = _event.srcElement.nodeName;
				}
				if(_nodeName=="INPUT"||_nodeName=="SELECT"||_nodeName=="TEXTAREA"||_nodeName=="FIELDSET") DragChkO = false;
				if(DragChkO){
					if (strChkL > 4) {
						strChkBr = _jsTrim(DragSelectionTxtHtml.substring ( strChkL - 4, strChkL));
						if (strChkBr.toUpperCase() == "<BR />") DragChkO = false;
						if (DragSelectionTxtHtml.toUpperCase().indexOf("</DT>") > 0) DragChkO = false;
					}
				}
			}
		}
		
		_jslayerHandler = function() {
			try {
				DragSelectionBtn = document.createElement('span')
				DragSelectionBtn.id = DragSchIdPos;
				DragSelectionBtn.style.position = 'absolute';
				DragSelectionBtn.style.width = '0px';
				DragSelectionBtn.style.height = '0px';
				DragSelectionBtn.style.fontSize = '0px';	
				
				var range = DragSelectionRange.getRangeAt(0);
				DragNewRange = document.createRange();
				DragNewRange.setStart(DragSelectionRange.focusNode, range.endOffset);
				DragNewRange.insertNode(DragSelectionBtn);
				
				if(!document.getElementById(DragSchIdLay)){				
					var el_body = document.getElementsByTagName("body");
					var el_DragSchLayer = document.createElement("span");		
					el_DragSchLayer.setAttribute("id", DragSchIdLay);
					el_body[0].appendChild(el_DragSchLayer);
					document.getElementById(DragSchIdLay).style.display = "none";
				}
							
				DragSelectionLayer = document.getElementById(DragSchIdLay);
				DragSelectionLayer.style.cssText =
				'display:block;position:absolute;cursor:pointer;z-index:9000;'+
				'color:#ffffff;font-weight:bold;font-size:10pt;margin:-23px 0 0 -5px;padding:3px;'+
				'background:-webkit-gradient(linear, 0 0, 0 bottom, from(#7870ab), to(#202020));'+
				'background:-moz-linear-gradient(#7870ab,#202020);'+
				'-webkit-box-shadow: #dddddd 0px 0px 5px;'+
				'-moz-box-shadow: #dddddd 0px 0px 5px;'+
				'-webkit-border-radius: 3px;'+
				'-moz-border-radius: 3px;';
				
				DragSelectionLayer.innerHTML = 'Search at Google';

				_jsPositionHandler();

				_jsAddEvent(DragSelectionLayer, 'mouseup', _jsLinkHandler);
				_jsAddEvent(window,"resize",_jsPositionHandler);

				DragDispChk = self.setInterval(_jsChkNodeStyle,500);
			} catch (e) { _jsCleanSelection(); }
		}
		
		_jsPositionHandler =  function(e) {
			if (DragSelectionLayer && DragSelectionBtn){
				DragPos = _jsPositionOffset(document.getElementById(DragSchIdPos));

				DragSelectionLayer.style.top = DragPos[0] +"px";
				DragSelectionLayer.style.left = DragPos[1] +"px";
			}
		}
		_jsPositionOffset= function(e) {
			var valueT = 0, valueL = 0;
			do {
				valueT += e.offsetTop || 0; 
				valueL += e.offsetLeft || 0; 
				e = e.offsetParent;
			} while (e); 

			if(valueT < 22){valueT = valueT + 40;}
			if(valueL + 70 > document.body.offsetWidth) {
				valueL = valueL - 60;
			}
			return [valueT, valueL];
		}

		_jsLinkHandler = function (event) {			
			var url = "http://google.com/search?q="+ encodeURIComponent(DragSelectionTxt);

			var searchpop = window.open(url);
			if (searchpop) searchpop.focus();

			_jsCleanSelection();
			_jsStopEvent(event);
		}

		_jsChkNodeStyle = function() { 
			if (document.getElementById("DragSchLayerPos")) {			
				var p = document.getElementById("DragSchLayerPos");
				do {
					if(p.nodeType != 1) { p = null; break; } else {	p = p.parentNode; }
					var ChkDisplay = _jsGetStyle(p,"display")
					if (ChkDisplay == "none") {
						_jsCleanSelection();
						break;
					}
				} while(p.nodeName.toUpperCase() != "BODY")
			}
		}

		_jsCleanSelection = function() { 
			try{
				DragSelectionRange = null;
				DragSelectionBtn = null;
				DragSelectionTxt = '';
				DragNewRange && DragNewRange.pasteHTML && DragNewRange.pasteHTML('');
				DragNewRange = null;
				if (document.getElementById(DragSchIdPos)) _jsRemove(DragSchIdPos);
				if (document.getElementById(DragSchIdLay)) document.getElementById(DragSchIdLay).style.display = "none";
				if (document.getElementById(DragSchIdLay)) _jsRemove(DragSchIdLay);
				clearInterval(DragDispChk);
			} catch (e) {}
		}
		
		return {
			initialize: function() {
				_jsAddEvent(document, 'mouseup', _jsDragHandler);
			}
		};
	
	} catch (e) {}

})();

__jsDragSearchHandler.initialize();

한국 독립 애니메이션 현재까지 목록

제목을 기준으로 오름차순으로 정렬함

Master Peace – 최 원재
2009,00:12:00

고양이와 나 – 안동희
2004,00:07:20

그들의 바다 – 김운기
2006,00:12:00

내 친구 고라니 – 장형윤
2009,00:04:11

도시에서 그녀가 피할 수 없는 것들 – 박지연
2008,00:12:45

드렁큰스타 – 이동명, 배성균, 김석, 김정욱, 안지윤
2008,00:02:48

띠띠리부 만딩씨 – 홍학순
2009,00:06:50

로망은 없다 – 박재욱,홍은지,수경
2009,01:10:00

비 오는 날의 산책 – 최현명
2006,00:04:40

수박병아리 – 원종식
20007,00:08:10

스탑 – 박재옥
2008,00:05:35

아낌없이 치고받는 나무 – 홍대영
2006,00:06:08

아빠가 필요해 – 장형윤
2005,00:10:00

엘리뇨 – 임아론
2007,00:09:03

Win7ElevateV2 little modified by Kjwon15

Comment:
This program is writen by Leo Davidson
and little modified by Kjwon15

How to Work:
1. Check parameter (first run, parameter is empty)
2. Extract DLL file at temp directory
3. Find explorer.exe and inject DLL

4. Injected DLL is run this program again (with parameter /s)
5. This mother process is end
6. Child process (Running as admin) excute RealMain() function

cfile8.uf.141A27474D68A95E34529A.rar