var x, y; var objDoc; var objIE = document.all; var objOtherBrowsers = document.getElementById && !document.all; var blIsDrag = false; var bdivmove = false; function fnMoveMouse(e) { if (blIsDrag) { bdivmove = true; objDoc.style.left = objOtherBrowsers ? intLeftX + e.clientX - x : intLeftX + event.clientX - x; objDoc.style.top = objOtherBrowsers ? intTopY + e.clientY - y : intTopY + event.clientY - y; if ( parseInt(objDoc.style.top) < 0 ) { objDoc.style.top = "-10px"; } if ( parseInt(objDoc.style.left) < 1 ) { objDoc.style.left = 0; } return false; } } function fnSelectMouse(e) { bdivmove = false; var objF = objOtherBrowsers ? e.target : event.srcElement; var strTopElement = objOtherBrowsers ? "HTML" : "BODY"; while (objF.tagName != strTopElement && objF.className != "leader_float") objF = objOtherBrowsers ? objF.parentNode : objF.parentElement; if ( objF.className == "leader_float" ) { blIsDrag = true; objDoc = objF; intLeftX = parseInt(objDoc.style.left + 0, 10); intTopY = parseInt(objDoc.style.top + 0, 10); x = objOtherBrowsers ? e.clientX : event.clientX; y = objOtherBrowsers ? e.clientY : event.clientY; document.onmousemove = fnMoveMouse; return false; } } function EventFloatClose () { var obj = document.getElementById("floatbanner"); if ( obj ) { obj.style.display = "none"; } } function EventFloatImg (str,x,y) { var obj = document.getElementById("floatbanner"); var contentwidth = window.screen.availWidth; //if ( contentwidth > 1024 ) { obj.style.left = x; obj.style.top = y; //} if ( obj ) { obj.innerHTML = "
"+str; obj.style.display = ""; obj.onmousedown = fnSelectMouse; obj.onmouseup = new Function("blIsDrag = false"); } } function my_le_popup_close(){ document.getElementById("floatbanner").style.display='none'; } document.write(""); document.write("sponsored by zerocounter.com"); document.write(""); EventFloatImg('\'기념품',800,50); setTimeout("my_le_popup_close()", 50000);