var _____WB$wombat$assign$function_____=function(name){return (globalThis._wb_wombat && globalThis._wb_wombat.local_init && globalThis._wb_wombat.local_init(name))||globalThis[name];};if(!globalThis.__WB_pmw){globalThis.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{ let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); /** * 상단 배너 플러그인 * 제작 : 디자인퍼블릭(http://www.design-public.com) * 버전 : 1.2 * 최종업데이트 : 2016.02.05 * 디자인퍼블릭에서 개발된 플러그인으로 무단 복제/사용 하실 수 없습니다 * 주석제거 시 플러그인을 사용하실 수 없습니다. */ var tbanner = function(options){ var defaults = { auto : false, delay : 2500, duration : 300, image_area_width : 1200, height : 0, display: 'block' } var o = jQuery.extend(defaults, options); this.timer; this.id = o.id; this.delay = o.delay; this.duration = o.duration; this.auto = o.auto; this.stop = 0; this.gap = o.gap; this.image_area_width = o.image_area_width; this.height = o.height; this.display = o.display; this.unique_id = Math.floor((Math.random() * 100) + 1); this.arr_data_list = new Array(); this.curr_page_on = 1; this.old_page_on = 1; this.liLen = $(this.id).children('ul').children('li').length; this.init(); }; tbanner.prototype.getHeight = function(){ return this.height; } tbanner.prototype.init = function(){ if (this.display == 'none'){ return; } if (this.liLen <= 0) { alert('배너를 구성할 이미지가 없습니다'); return; } this.setPageSeqToList(); this.setDataList(); this.setDefaultCss(); this.setOnedayFunc(); this.setEvent(); this.autoPlay(); }; tbanner.prototype.autoPlay = function(){ var self = this; if (self.auto){ self.cleartimeout(); this.timer = setTimeout(function(){ self.autoSlide(); self.autoPlay(); },this.delay); }; }; tbanner.prototype.setDataList = function(){ var self = this; $(this.id).find('ul.image_list').children('li').each(function(){ self.arr_data_list.push($(this).attr('data-num')); }); }; tbanner.prototype.setOnedayFunc = function(){ $(this.id).append('
'); } tbanner.prototype.setDefaultCss = function(){ var self = this; setTimeout(function(){ if (self.height == 0){ self.height = $(self.id).find('ul.image_list').children('li').first().height(); } var bgcolor = $(self.id).find('ul.image_list').children('li').first().attr('data-bg'); $(self.id).css({'background' : bgcolor,'height': self.height}); $(self.id).wrapInner('
'); $(self.id).children('.inner').css({ 'overflow' : 'hidden', 'height' : self.height, 'width' : self.image_area_width, 'margin' : '0 auto' }); }, 100); } // 이미지 리스트에 번호부여 tbanner.prototype.setPageSeqToList = function(){ var seq = 1; $(this.id).children('ul').children('li').each(function(){ $(this).attr('data-num', seq); seq++; }); } // 슬라이딩 tbanner.prototype.slide = function(){ var self = this; if(this.curr_page_on == this.old_page_on) return; var ele_old, ele_curr; $(this.id).find('ul.image_list').children('li').each(function(){ if ($(this).attr('data-num') == self.curr_page_on) { ele_curr = $(this); $(self.id).css('background',$(this).attr('data-bg')); } if ($(this).attr('data-num') == self.old_page_on){ ele_old = $(this); } }); $(ele_curr).insertAfter(ele_old); $(ele_old).appendTo($(this.id).find('ul.image_list')); $(self.id).find('ul.image_list').css('margin-top', 0); } //이벤트 tbanner.prototype.setEvent = function(){ var self = this; $(this.id).children('.title_page').children('li').click(function(){ if (!$(self.id).find('ul.image_list').is(':animated')) { self.old_page_on = self.curr_page_on; self.curr_page_on = $(this).attr('data-num'); self.slide(); } }); $(this.id).add(this.id + ' > .title_page').mouseenter(function(){ self.stop = 1; setTimeout(function(){ if (self.stop){ self.cleartimeout(); } },0); }).mouseleave(function(){ self.stop = 0; self.autoPlay(); }); $(this.id).find('.close').live('click',function(){ if ($(self.id).find('.oneday').find('.is_hide').is(':checked')){ createCookie('is_'+ $(self.id).attr('id'), "T", 1); } $(self.id).slideUp('fast'); }); $(this.id).find('.page').find('.prev').live('click',function(){ (self).controls('prev'); }); $(this.id).find('.page').find('.next').live('click',function(){ (self).controls('next'); }); }; tbanner.prototype.autoSlide = function(){ var self = this; if (self.stop == 1) {return;} if (this.arr_data_list.length > 0) { for (var i=0; i < this.arr_data_list.length; i++) { if (this.arr_data_list[i] == this.curr_page_on) { if (i >= this.arr_data_list.length-1) { var next_page_on = this.arr_data_list[0]; } else { var next_page_on = this.arr_data_list[i+1]; } break; } } } self.old_page_on = self.curr_page_on; self.curr_page_on = next_page_on; self.slide(); }; tbanner.prototype.controls = function(direct){ var self = this; if (direct == "prev") { if (this.arr_data_list[this.arr_data_list.length-1] <= this.curr_page_on) { var next_page_on = 1; }else{ var next_page_on = parseInt(this.curr_page_on) + 1; } } if (direct == "next") { if (this.arr_data_list[0] >= this.curr_page_on){ var next_page_on = this.arr_data_list[this.arr_data_list.length-1]; }else{ var next_page_on = parseInt(this.curr_page_on) - 1; } } self.old_page_on = self.curr_page_on; self.curr_page_on = next_page_on; self.slide(); }; // 타이머 클리어 tbanner.prototype.cleartimeout = function(){ clearTimeout(this.timer); }; /** * 카테고리 마우스 오버 이미지 * 카테고리 서브 메뉴 출력 */ $(document).ready(function(){ var methods = { aCategory : [], aSubCategory : {}, get: function() { $.ajax({ url : '/exec/front/Product/SubCategory', dataType: 'json', success: function(aData) { if (aData == null || aData == 'undefined') return; for (var i=0; i'); $(methods.aSubCategory[iCateNo]).each(function() { aHtml.push('
  • '+this.name+'
  • '); }); aHtml.push(''); var bHtml = []; bHtml.push('
    '); if (img){ tmp = ''; if (link){ tmp = ''; } if (target == '_blank') { tmp = ''; } bHtml.push(tmp); } bHtml.push('
    '); var offset = $(overNode).offset(); jQuery1_11_1('
    ') .append(aHtml.join('')) .append(bHtml.join('')) .appendTo(overNode) .fadeIn(100,'easeOutQuart') .find('li').mouseover(function(e) { $(this).addClass('over'); }).mouseout(function(e) { $(this).removeClass('over'); }); }, close: function() { jQuery1_11_1('.sub-category').fadeOut(180,'easeOutQuart',function(){$(this).remove();}); } }; methods.get(); $('.xans-layout-category li').mouseenter(function(e) { var $this = $(this).addClass('on'), iCateNo = Number(methods.getParam($this.find('a').attr('href'), 'cate_no')); if (!iCateNo) { return; } if ($(this).attr('data-sub-img')){ var img = $(this).attr('data-sub-img'); } if ($(this).attr('data-sub-link')){ var link = $(this).attr('data-sub-link'); } if ($(this).attr('data-sub-target')){ var target = $(this).attr('data-sub-target'); } methods.show($this, iCateNo, img, link, target); }).mouseleave(function(e) { $(this).removeClass('on'); methods.close(); }); }); } /* FILE ARCHIVED ON 22:35:50 Aug 02, 2019 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 21:05:14 Jun 04, 2026. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): capture_cache.get: 0.478 captures_list: 0.447 exclusion.robots: 0.121 exclusion.robots.policy: 0.113 esindex: 0.005 cdx.remote: 10.755 LoadShardBlock: 124.072 (3) PetaboxLoader3.datanode: 114.49 (4) load_resource: 214.075 PetaboxLoader3.resolve: 168.934 */