var wp_rcBody = ''; var chk_url = ""; var real_url = ""; var heightTemp = ""; var topTemp=""; var leftTemp=""; jQuery(window).resize(function(){ var s_type = "4220"; if(s_type=='3379'){ leftTemp = jQuery("#left_position").offset().left; jQuery("#withpang_p").css("left",leftTemp); } }); var mobon_postMessage = function (){ var postmessageFunc = function (e) { if (parseInt(e.data) > 0 ){ document.getElementById('mobon_screen').style.height = e.data + 'px'; document.getElementById('wp_screen_mobon').style.height = e.data + 'px'; document.getElementById('btn_screen_mobon').style.visibility = 'visible'; document.getElementById('btn_mobon').style.visibility = 'visible'; } }; wp_util.addEvent1('message',postmessageFunc, false); if( wp_util.getNavigatorType()=="IE" ){ if( wp_util.getExploerVersion()< 9 ){ //document.getElementById('mobon_screen').style.height = '100px'; jQuery("#mobon_screen").css("height","100px"); //document.getElementById('wp_screen_mobon').style.height = '100px'; jQuery("#wp_screen_mobon").css("height","100px"); //document.getElementById('mobon_btn_x62').style.visibility = 'visible'; jQuery("#btn_screen_mobon").css("visibility","visible"); jQuery("#btn_mobon").css("visibility","visible"); } } } var mobon_animate = function (paramOptions){ var defaultOptions = { frameRateDown : 0.3 // 300 fps , frameRateUp : 0.04 // 40 fps , incNum : 10 // increase px , targetId : "testDiv" , top : 30 // top position percent }; // merge options var extendsFunc = function(obj1, obj2){ var newObj = {}; var copyObj = function(obj, copyObj){ if(copyObj === null) return; /* For compatibility with <=IE8 */ if (!Object.keys) Object.keys = function(o) { if (o !== Object(o)) throw new TypeError('Object.keys called on a non-object'); var k=[],p; for (p in o) if (Object.prototype.hasOwnProperty.call(o,p)) k.push(p); return k; } var keys = Object.keys(copyObj); for (var i = 0; i < keys.length; i++) { obj[keys[i]] = copyObj[keys[i]]; } }; copyObj(newObj, obj1); copyObj(newObj, obj2); // console.log(newObj); return newObj; }; var options = extendsFunc(defaultOptions, paramOptions); var getWidth = function(){ return window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; }; var getHeight = function(){ return window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight; }; var addEvent = function(t, i){ if ( window.addEventListener ) { window.addEventListener( t, i, !1 ); } else if ( window.attachEvent ) { window.attachEvent( "on" + t, i ); } else if ( window.onLoad ) { window.onload = i; } }; var handle; var moveTag = function(obj, st, et, pt,time){ var accNum =0; var isFinish = false; handle = setInterval(function() { var value; accNum += options.incNum; // ¾Æ·¡¿¡¼ À§·Î ¿òÁ÷À϶§ ¶Ç´Â ¿ì¿¡¼ Á·Πif(st > et){ value = st - accNum; if(value === et || value < et ){ value = et; isFinish = true; } } // À§¿¡¼ ¾Æ·¡·Î ¶Ç´Â Á¿¡¼ ¿ì·Î else{ value = st + accNum; if(value === et || value > et ){ value = et; isFinish = true; } } // console.log(value); obj.style[pt] = value + "px"; if (isFinish) { isFinish = false; clearInterval(handle); if(et > 0) moveTag(obj, et, 0, "top", options.frameRateUp); } }, 1 / time); } var moveTagEvt = function(){ clearInterval(handle); var div = document.getElementById(options.targetId); // ÇöÀç À§Ä¡ °¡Á®¿À±â var st = div.getBoundingClientRect().top; var et = getHeight() * (options.top /100); // console.log("st>>>>"+st); // console.log("et>>>>"+et); moveTag(div, st, et, "top",options.frameRateDown); }; addEvent("scroll", moveTagEvt); } /** * ¿§Áö¹è³Ê À¯Æ¿ */ var wp_util=(function(){ return{ getNavigatorType: function(){ var trident = !!navigator.userAgent.match(/Trident\/7.0/); var net = !!navigator.userAgent.match(/.NET4.0E/); var IE11 = trident && net var IEold = ( navigator.userAgent.match(/MSIE/i) ? true : false ); if(IE11 || IEold){ return ("IE"); }else{ return ("Other"); } } ,getExploerVersion:function(){ var rv = -1; if (navigator.appName == 'Microsoft Internet Explorer') { var ua = navigator.userAgent; var re = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})"); if (re.exec(ua) != null) rv = parseFloat( RegExp.$1 ); }else if (navigator.appName == 'Netscape'){ var ua = navigator.userAgent; var re = new RegExp("Trident/.*rv:([0-9]{1,}[\.0-9]{0,})"); if (re.exec(ua) != null) rv = parseFloat( RegExp.$1 ); } return parseInt(rv); } ,getScrollY:function(){ var n = document; return n.documentElement.scrollTop | n.body.scrollTop } ,getPageSize:function () { var r, u, n = null, i = null; return (n = document), n.documentElement && n.documentElement.clientHeight ? (r = n.documentElement.clientWidth, u = n.documentElement.clientHeight) : n.body && n.body.clientHeight && (r = n.body.clientWidth, u = n.body.clientHeight), { width: r, height: u } } ,addEvent1:function (t, i) { // var n=window; // n.addEventListener ? n.addEventListener(t, i, !1) : n.attachEvent("on" + t, i); if ( window.addEventListener ) { window.addEventListener( t, i, !1 ); } else if ( window.attachEvent ) { window.attachEvent( "on" + t, i ); } else if ( window.onLoad ) { window.onload = i; } } ,addEvent:function(element, listener, handler){ if(typeof element[listener] != 'function' || typeof element[listener + '_num'] == 'undefined') { element[listener + '_num'] = 0; if (typeof element[listener] == 'function') { element[listener + 0] = element[listener]; element[listener + '_num']++; } element[listener] = function(e) { var r = true; e = (e) ? e : window.event; for(var i = element[listener + '_num'] -1; i >= 0; i--) { if(element[listener + i](e) == false) r = false; } return r; } } //if handler is not already stored, assign it for(var i = 0; i < element[listener + '_num']; i++) if(element[listener + i] == handler) return; element[listener + element[listener + '_num']] = handler; element[listener + '_num']++; } }; })(); var f_type = "2"; /** * Å佺Ʈ¹è³Ê À¯Æ¿ */ if(f_type == '3'){ var wp_Toast=(function(){ return { init : function(FadeInCfg,option) { //=== Option Start === var udef='undefined'; var cfg=typeof(FadeInCfg)!=udef ? FadeInCfg : null; this.row = cfg!=null && typeof(cfg.row) !=udef ? cfg.row : 10; this.opacity = cfg!=null && typeof(cfg.opacity) !=udef ? cfg.opacity : 100; this.delay = cfg!=null && typeof(cfg.delay) !=udef ? cfg.delay : 1500; this.term = cfg!=null && typeof(cfg.term) !=udef ? cfg.term : 6000; this.speed = cfg!=null && typeof(cfg.speed) !=udef ? cfg.speed : 60; this.posY = cfg!=null && typeof(cfg.posY) !=udef ? cfg.posY : 380; this.expTop = cfg!=null && typeof(cfg.expTop) !=udef ? cfg.expTop : 0; this.expRight = cfg!=null && typeof(cfg.expRight) !=udef ? cfg.expRight : 0; this.expBottom = cfg!=null && typeof(cfg.expBottom) !=udef ? cfg.expBottom : 0; this.expLeft = cfg!=null && typeof(cfg.expLeft) !=udef ? cfg.expLeft : 22; this.width = cfg!=null && typeof(cfg.width) !=udef ? cfg.width : 370; //table width this.field = cfg!=null && typeof(cfg.field) !=udef ? cfg.field : 'all'; //display field : free,all,in,out this.ImgOverlap = cfg!=null && typeof(cfg.ImgOverlap) !=udef ? cfg.ImgOverlap : 'normal'; //display overlap : in,out,normal this.align = cfg!=null && typeof(cfg.align) !=udef ? cfg.align : 'center'; //display align : left,center,right this.play = cfg!=null && typeof(cfg.play) !=udef ? cfg.play : 'fadein'; //play type : normal this.CrsBrsErr = cfg!=null && typeof(cfg.CrsBrsErr) !=udef ? cfg.CrsBrsErr : false; //CrossBrowsingErr:false //true :window.onload use, flase : none this.zIndex = cfg!=null && typeof(cfg.zIndex) !=udef ? cfg.zIndex : 99999; //div z-index this.wp_videoSW = cfg!=null && typeof(cfg.wp_videoSW) !=udef ? cfg.wp_videoSW : ""; this.option = option; this.p = function() { var e = navigator.userAgent.toLowerCase(), t = { webkit: /webkit/.test(e), mozilla: /mozilla/.test(e) && !/(compatible|webkit)/.test(e), chrome: /chrome/.test(e), msie: /msie/.test(e) && !/opera/.test(e), firefox: /firefox/.test(e), safari: /safari/.test(e) && !/chrome/.test(e), opera: /opera/.test(e) }; return t.version = t.safari ? (e.match(/.+(?:ri)[\/: ]([\d.]+)/) || [])[1] : (e.match(/.+(?:ox|me|ra|ie)[\/: ]([\d.]+)/) || [])[1], t }(); //=== Option End === this.pidx=0;this.opt=0;this.vt=null;this.ot=null;this.rt=null;//this.table=null; this.body=document.compatMode||document.compatMode=="BackCompat"?document.body:document.documentElement; // this.div=document.createElement('div'); this.div=document.createElement('span'); console.log("========="+this.div); this.body.appendChild(this.div); //2015-01-22 this.div.style.position="fixed"; this.div.style.bottom="0"; //2015-01-22 this.div.style.filter="alpha(opacity=0)"; this.div.style.opacity="0"; this.div.style.zIndex=this.zIndex; this.div.style.display="block"; this.div.id = "mobon_toast_banner"; //window.onscroll=document.onscroll=this.scroll; //window.onresize=document.onresize=this.scroll; // if($)$(window).scroll(this.scroll); wp_util.addEvent1('scroll',this.toastScroll); this.write();this.toastScroll(); } ,getPos:function(o,t){var c=0;while(o && o.offsetParent){c+=(t=="L")?o.offsetLeft:o.offsetTop;o=o.offsetParent;}return c;} ,getAtt:function(t){ switch(t){ case 'clientHeight':if(window.innerHeight!=window.undefined)return window.innerHeight;break; case 'clientWidth':if(window.innerWidth!=window.undefined)return window.innerWidth;break; case 'scrollTop':if(window.pageYOffset!=window.undefined)return window.pageYOffset;break; case 'scrollLeft':if(window.pageXOffset!=window.undefined)return window.pageXOffset;break; } if (document.compatMode=='CSS1Compat') return document.documentElement[t]; if (document.body) return document.body[t]; return window.undefined; } ,pos:function(){ var c=document.getElementById(this.content); // this.div.style.top = this.getAtt('scrollTop') + this.getAtt('clientHeight')-this.posY+"px"; var L=this.getAtt('scrollLeft'); var W=this.getAtt('clientWidth'); L=this.getPos(c,"L")-this.expLeft; switch(this.align){ case 'left': this.div.style.left = "0px"; break; case 'right': this.div.style.right = "0px"; break; case 'center': default: W = (W-this.width)/2; break; } } ,visiable:function(){ this.pos(); if(this.vt)window.clearInterval(this.vt); switch(this.play){ case 'fadein': this.vt=window.setInterval("wp_Toast.fadein(4)",this.speed); break; case 'normal': default : wp_Toast.normal(); break; } } ,fadein:function(a){ this.opt+=a;this.div.style.opacity=this.opt/100;this.div.style.filter="alpha(opacity="+this.opt+")"; if((this.opt==0||this.opt>=this.opacity)&&this.vt){ if(this.vt){window.clearInterval(this.vt);vt=null;} if(this.rt)window.clearTimeout(this.rt); } } ,normal:function(){ this.div.style.opacity=this.opacity/100;this.div.style.filter="alpha(opacity="+this.opacity+")"; if(this.vt){window.clearInterval(this.vt);vt=null;} if(this.rt)window.clearTimeout(this.rt); } ,toastScroll:function(){ if(!this.wp_videoSW)wp_Toast.move(); } ,move:function(){ this.div.style.visibility='visible'; if( !this.wp_videoSW ){ this.timeClear(); this.opt=0; this.div.style.opacity=0; this.div.style.filter="alpha(opacity=0)"; this.pos(); this.ot=window.setTimeout("wp_Toast.visiable()",this.delay); } } ,block:function(){this.div.style.display="none";this.set_cookie('wp_videoSW','false',1);this.timeClear();} ,block_close:function(){this.div.style.display="none";} ,timeClear:function(){ if(this.vt)window.clearInterval(this.vt);this.vt=null; if(this.ot)window.clearTimeout(this.ot);this.ot=null; if(this.rt)window.clearInterval(this.rt);this.rt=null; } ,write:function() { //Å佺Ʈ¹è³Ê real_url = "http://www.dreamsearch.or.kr/servlet/adBanner?from=&u=2015102200008&us=3487&s=4220&iwh=180_180&igb=70&types=&align="; var iwh = this.option._wp_w+"_"+this.option._wp_h var r = Math.round(Math.random()*1000); var H="
";
H+=" ";
H+=" |
| "; H+=""; H+=" |