capture 및 unCapture IE 외부 브라우저 캡처

1527 단어 브라우저IE
function syncScroll(){
	Hc.isCapture && overlayElement.setLocation(Hc.getScroll());
}

capture:Hc.isIE?function(target){
	if(Hc.captureTarget){
		Hc.unCapture();
	}
	(Hc.captureTarget = Hc.getDom(target)).setCapture();
	Hc.isCapture = true;
}:function(target/*,handle*/){
	Hc.isCapture = true;
	if(!overlayElement){
		overlayElement = Hc.getBody().on("scroll",syncScroll).createIn({
			cls:"hc-capture-overlay"
		},true);
	}
	/*
	2010-07-15  2 
	handle = handle || target;
	if((handle = handle || target)!=cacheHandle){
		cacheHandle = handle;
		overlayElement.setStyle("cursor",Hc.fly(cacheHandle,"_capture").getStyle("cursor"));
	}
	*/
	if(target != cacheTarget){
		cacheTarget = target;
		cacheFly = Hc.fly(cacheTarget,"_capture");
		overlayElement.setStyle("cursor",cacheFly.getStyle("cursor"));
	}
	overlayElement.show();
	syncScroll();
	Hc.captureTarget = cacheFly.dom;
},
		
/**
*@getter  .
*/
captureTarget:null,
		
/**
*@getter  .
*/
isCapture:false,

/**
* .
*/
unCapture:function(){
	if(Hc.captureTarget){
		Hc.isIE ? Hc.captureTarget.releaseCapture():overlayElement.hide();
		Hc.captureTarget = null;
		Hc.isCapture = false;
	}
},

좋은 웹페이지 즐겨찾기