var SLB_cnt = 0; var getClientInfo = function() { var r = {}, b = navigator.userAgent.toLowerCase(); if (b.indexOf('msie 7') > -1 || b.indexOf('msie 8') > -1) r.browser = 'newie'; else if (b.indexOf('msie') > -1) r.browser = 'ie'; else if (b.indexOf('firefox') > -1) r.browser = 'firefox'; else if (b.indexOf('flock') > -1) r.browser = 'flock'; else if (b.indexOf('navigator') > -1) r.browser = 'netscape'; else if (b.indexOf('opera') > -1) r.browser = 'opera'; else if (b.indexOf('safari') > -1) r.browser = 'safari'; else r.browser = 'etc'; if (b.indexOf('windows') > -1) r.os = 'windows'; else if (b.indexOf('linux') > -1) r.os = 'linux'; else if (b.indexOf('mac os x') > -1) r.os = 'mac'; else r.os = 'etc'; if (r.browser == 'ie') { r.width = document.body.scrollWidth; r.height = document.body.scrollHeight; } else { r.width = document.documentElement.scrollWidth; r.height = document.documentElement.scrollHeight; } if (r.browser == 'ie' || r.browser == 'newie') { r.cwidth = document.documentElement.offsetWidth; r.cheight = document.documentElement.offsetHeight; } else { r.cwidth = document.documentElement.clientWidth; r.cheight = document.documentElement.clientHeight; } if (r.browser == 'safari') { r.left = window.scrollX; r.top = window.scrollY; } else { r.left = document.documentElement.scrollLeft; r.top = document.documentElement.scrollTop; } if (r.cwidth > r.width) r.width = r.cwidth; if (r.cheight > r.height) r.height = r.cheight; return r; }; function SLB(url, type) { var a = document.getElementById('SLB_film'); var b = document.getElementById('SLB_content'); var c = document.getElementById('SLB_loading'); var now_location = self.location; //alert(url); if(url) { a.style.top = 0; a.style.left = 0; if(now_location=='http://dotname.co.kr/hostprice/renew/index_re.html' || now_location=='http://dotname.co.kr/hostprice/renew/index_re.html#' || now_location=='http://dotname.co.kr/hostprice/renew/window_re.html#' || now_location=='http://dotname.co.kr/hostprice/renew/window_re.html' || now_location=='http://dotname.co.kr/hostprice/renew/image_re.html#' || now_location=='http://dotname.co.kr/hostprice/renew/image_re.html' || now_location=='http://dotname.co.kr/hostprice/renew/mail_re.html#' || now_location=='http://dotname.co.kr/hostprice/renew/mail_re.html' ) { a.style.background = 'black'; a.filters.alpha.opacity="70"; // ¹è°æÈ­¸é Åõ¸íµµ } a.style.display = ""; if (document.documentElement.scrollHeight > document.body.scrollHeight) { a.style.height = document.documentElement.scrollHeight + 'px'; } else { a.style.height = document.body.scrollHeight + 'px'; } c.style.display = "block"; SLB_setCenter(c,true); if(type == 'image') { b.innerHTML=""; if(arguments[2]) a.onclick = function () { SLB() }; if(arguments[3]) b.innerHTML += "
"+ arguments[3] +"
";; } else if (type == 'iframe') { b.innerHTML = ""; //"+arguments[5]+" if(arguments[4]) { b.innerHTML += ""; } b.onclick = ''; b.firstChild.style.cursor = 'default'; } else if (type='html'){ b.innerHTML = url; SLB_setCenter(b.firstChild); if(arguments[2]) b.onclick = ''; } hideSelect(); } else { a.onclick = ''; a.style.display = "none"; a.style.height = '100%'; a.style.width = '100%'; b.innerHTML = ""; b.onclick = function () { SLB() }; c.style.display = "none"; showSelect(); SLB_cnt = 0; var regi_join = document.getElementById('regi_join'); regi_join.value = "1"; } } //hae function regi_slb(){ var a = document.getElementById('regi_join'); a.value = "2"; } //hae // function SLB_setCenter(obj) { var client = getClientInfo(); if (obj) { var h = (window.innerHeight || self.innerHeight || document.documentElement.clientHeight || document.body.clientHeight); var w = (window.innerWidth || self.innerWidth || document.documentElement.clientWidth || document.body.clientWidth); var l = ((window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft) + ((w-(obj.width||parseInt(obj.style.width)||obj.offsetWidth))/2)); var t = ((window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop) + ((h-(obj.height||parseInt(obj.style.height)||obj.offsetHeight))/2)); if((obj.width||parseInt(obj.style.width)||obj.offsetWidth) >= w) l = 0; if((obj.height||parseInt(obj.style.height)||obj.offsetHeight) >= h) t = (window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop); hae = document.getElementById('loginxy'); hae1 = hae.getBoundingClientRect(); loginx = hae1.left - 20; loginy = hae1.top + 15; var regi_join = document.getElementById('regi_join'); if(regi_join.value == "2") { if(document.getElementById('chk_pop_flag')) { var width = 726; var height = 200; loginx = (client.cwidth - width) / 2 + client.left + 63; loginy = (client.cheight - height) / 2 + client.top - 70; //alert(client.top); } else { loginx = l; loginy = t; } } /*var width = 726; var height = 200; loginx = (client.cwidth - width) / 2 + client.left + 63; loginy = (client.cheight - height) / 2 + client.top - 70;*/ document.getElementById('SLB_content').style.left = loginx + "px"; // //loginx-20 + "px"; //l + "px" if(SLB_cnt == 0) { document.getElementById('SLB_content').style.top = loginy + "px"; // //loginy+15 + "px"; //t if(document.getElementById('SLB_content').offsetHeight >= h - 20) { SLB_cnt ++; } if(obj.nextSibling && (obj.nextSibling.className == 'SLB_close' || obj.nextSibling.className == 'SLB_caption')) { obj.nextSibling.style.display = 'block'; if((t - (window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop))>(obj.nextSibling.offsetHeight/2)) { document.getElementById('SLB_content').style.top = parseInt(document.getElementById('SLB_content').style.top) - (obj.nextSibling.offsetHeight/2) + "px"; } } } obj.style.visibility = 'visible'; if(!arguments[1]) { document.getElementById('SLB_loading').style.display = "none"; } else { obj.style.left = l + "px"; obj.style.top = t + "px"; } } } function hideSelect() { var windows = window.frames.length; var selects = document.getElementsByTagName("SELECT"); for (i=0;i < selects.length ;i++ ) { selects[i].style.visibility = "hidden"; } if (windows > 0) { for(i=0; i < windows; i++) { try { var selects = window.frames[i].document.getElementsByTagName("SELECT"); for (j=0;j 0) { for(i=0; i < windows; i++) { try { var selects = window.frames[i].document.getElementsByTagName("SELECT"); for (j=0;j=0.1? 16 : 0; var currentfr=document.getElementById('SLB_iframe'); if(sign == true) { try { if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight) { setIframeSize(currentfr.contentDocument.body.offsetHeight+FFextraHeight); } else if (currentfr.Document && currentfr.Document.body.scrollHeight) { setIframeSize(currentfr.Document.body.scrollHeight); } }catch(e) { } } else { SLB_setCenter(currentfr); } } function setIframeSize(h, w) { SLB_cnt = 0; var ifr = currentfr=document.getElementById('SLB_iframe'); if (ifr) { if(w) { ifr.width = w; } if(h) { ifr.height = h; } SLB_setCenter(ifr); } } /* var prevOnScroll = window.onscroll; window.onscroll = function () { if(prevOnScroll != undefined) prevOnScroll(); if (document.documentElement.scrollHeight > document.body.scrollHeight) { document.getElementById('SLB_film').style.height = document.documentElement.scrollHeight + 'px'; } else { document.getElementById('SLB_film').style.height = document.body.scrollHeight + 'px'; } document.getElementById('SLB_film').style.width = document.body.scrollWidth + 'px'; SLB_setCenter(document.getElementById('SLB_content').firstChild); } var prevOnResize = window.onresize; window.onresize = function () { if(prevOnResize != undefined) prevOnResize(); if (document.documentElement.scrollHeight > document.body.scrollHeight) { document.getElementById('SLB_film').style.height = document.documentElement.scrollHeight + 'px'; } else { document.getElementById('SLB_film').style.height = document.body.scrollHeight + 'px'; } document.getElementById('SLB_film').style.width = document.body.offsetWidth + 'px'; SLB_setCenter(document.getElementById('SLB_content').firstChild); } */