1/** 2 * Cookie plugin 3 * 4 * Copyright (c) 2006 Klaus Hartl (stilbuero.de) 5 * Dual licensed under the MIT and GPL licenses: 6 * http://www.opensource.org/licenses/mit-license.php 7 * http://www.gnu.org/licenses/gpl.html 8 * 9 */ 10 11/** 12 * Create a cookie with the given name and value and other optional parameters. 13 * 14 * @example $.cookie('the_cookie', 'the_value'); 15 * @desc Set the value of a cookie. 16 * @example $.cookie('the_cookie', 'the_value', {expires: 7, path: '/', domain: 'jquery.com', secure: true}); 17 * @desc Create a cookie with all available options. 18 * @example $.cookie('the_cookie', 'the_value'); 19 * @desc Create a session cookie. 20 * @example $.cookie('the_cookie', null); 21 * @desc Delete a cookie by passing null as value. 22 * 23 * @param String name The name of the cookie. 24 * @param String value The value of the cookie. 25 * @param Object options An object literal containing key/value pairs to provide optional cookie attributes. 26 * @option Number|Date expires Either an integer specifying the expiration date from now on in days or a Date object. 27 * If a negative value is specified (e.g. a date in the past), the cookie will be deleted. 28 * If set to null or omitted, the cookie will be a session cookie and will not be retained 29 * when the the browser exits. 30 * @option String path The value of the path atribute of the cookie (default: path of page that created the cookie). 31 * @option String domain The value of the domain attribute of the cookie (default: domain of page that created the cookie). 32 * @option Boolean secure If true, the secure attribute of the cookie will be set and the cookie transmission will 33 * require a secure protocol (like HTTPS). 34 * @type undefined 35 * 36 * @name $.cookie 37 * @cat Plugins/Cookie 38 * @author Klaus Hartl/[email protected] 39 */ 40 41/** 42 * Get the value of a cookie with the given name. 43 * 44 * @example $.cookie('the_cookie'); 45 * @desc Get the value of a cookie. 46 * 47 * @param String name The name of the cookie. 48 * @return The value of the cookie. 49 * @type String 50 * 51 * @name $.cookie 52 * @cat Plugins/Cookie 53 * @author Klaus Hartl/[email protected] 54 */ 55;jQuery.cookie = function(name, value, options) { 56 if (typeof value != 'undefined') { // name and value given, set cookie 57 options = options || {}; 58 if (value === null) { 59 value = ''; 60 options.expires = -1; //options.path = "/"; 61 } 62 var expires = ''; 63 if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) { 64 var date; 65 if (typeof options.expires == 'number') { 66 date = new Date(); 67 date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000)); 68 } else { 69 date = options.expires; 70 } 71 expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE 72 } 73 var path = options.path ? '; path=' + options.path : ''; 74 var domain = options.domain ? '; domain=' + options.domain : ''; 75 var secure = options.secure ? '; secure' : ''; 76 document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join(''); 77 } else { // only name given, get cookie 78 var cookieValue = null; 79 if (document.cookie && document.cookie != '') { 80 var cookies = document.cookie.split(';'); 81 for (var i = 0; i < cookies.length; i++) { 82 var cookie = jQuery.trim(cookies[i]); 83 // Does this cookie string begin with the name we want? 84 if (cookie.substring(0, name.length + 1) == (name + '=')) { 85 cookieValue = decodeURIComponent(cookie.substring(name.length + 1)); 86 break; 87 } 88 } 89 } 90 return cookieValue; 91 } 92}; 93/* 94 * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ 95 * 96 * Uses the built in easing capabilities added In jQuery 1.1 97 * to offer multiple easing options 98 *
99 * TERMS OF USE - EASING EQUATIONS 100 * 101 * Open source under the BSD License. 102 * 103 * Copyright é 2001 Robert Penner 104 * All rights reserved. 105 * 106 * TERMS OF USE - jQuery Easing 107 * 108 * Open source under the BSD License. 109 * 110 * Copyright é 2008 George McGinley Smith 111 * All rights reserved. 112 * 113 * Redistribution and use in source and binary forms, with or without modification, 114 * are permitted provided that the following conditions are met: 115 * 116 * Redistributions of source code must retain the above copyright notice, this list of 117 * conditions and the following disclaimer. 118 * Redistributions in binary form must reproduce the above copyright notice, this list 119 * of conditions and the following disclaimer in the documentation and/or other materials 120 * provided with the distribution. 121 * 122 * Neither the name of the author nor the names of contributors may be used to endorse 123 * or promote products derived from this software without specific prior written permission. 124 * 125 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 126 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 127 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 128 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 129 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 130 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 131 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 132 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 133 * OF THE POSSIBILITY OF SUCH DAMAGE. 134 * 135*/ 136jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,f,a,h,g){return jQuery.easing[jQuery.easing.def](e,f,a,h,g)},easeInQuad:function(e,f,a,h,g){return h*(f/=g)*f+a},easeOutQuad:function(e,f,a,h,g){return -h*(f/=g)*(f-2)+a},easeInOutQuad:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f+a}return -h/2*((--f)*(f-2)-1)+a},easeInCubic:function(e,f,a,h,g){return h*(f/=g)*f*f+a},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeInOutCubic:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f+a}return h/2*((f-=2)*f*f+2)+a},easeInQuart:function(e,f,a,h,g){return h*(f/=g)*f*f*f+a},easeOutQuart:function(e,f,a,h,g){return -h*((f=f/g-1)*f*f*f-1)+a},easeInOutQuart:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a}return -h/2*((f-=2)*f*f*f-2)+a},easeInQuint:function(e,f,a,h,g){return h*(f/=g)*f*f*f*f+a},easeOutQuint:function(e,f,a,h,g){return h*((f=f/g-1)*f*f*f*f+1)+a},easeInOutQuint:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f*f+a}return h/2*((f-=2)*f*f*f*f+2)+a},easeInSine:function(e,f,a,h,g){return -h*Math.cos(f/g*(Math.PI/2))+h+a},easeOutSine:function(e,f,a,h,g){return h*Math.sin(f/g*(Math.PI/2))+a},easeInOutSine:function(e,f,a,h,g){return -h/2*(Math.cos(Math.PI*f/g)-1)+a},easeInExpo:function(e,f,a,h,g){return(f==0)?a:h*Math.pow(2,10*(f/g-1))+a},easeOutExpo:function(e,f,a,h,g){return(f==g)?a+h:h*(-Math.pow(2,-10*f/g)+1)+a},easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a},easeInCirc:function(e,f,a,h,g){return -h*(Math.sqrt(1-(f/=g)*f)-1)+a},easeOutCirc:function(e,f,a,h,g){return h*Math.sqrt(1-(f=f/g-1)*f)+a},easeInOutCirc:function(e,f,a,h,g){if((f/=g/2)<1){return -h/2*(Math.sqrt(1-f*f)-1)+a}return h/2*(Math.sqrt(1-(f-=2)*f)+1)+a},easeInElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e},easeOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return g*Math.pow(2,-10*h)*Math.sin((h*k-i)*(2*Math.PI)/j)+l+e},easeInOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k/2)==2){return e+l}if(!j){j=k*(0.3*1.5)}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j)*0.5+l+e},easeInBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*(f/=h)*f*((g+1)*f-g)+a},easeOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*((f=f/h-1)*f*((g+1)*f+g)+1)+a},easeInOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}if((f/=h/2)<1){return i/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return i/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+a},easeInBounce:function(e,f,a,h,g){return h-jQuery.easing.easeOutBounce(e,g-f,0,h,g)+a},easeOutBounce:function(e,f,a,h,g){if((f/=g)<(1/2.75)){return h*(7.5625*f*f)+a}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+a}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+a}else{return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+a}}}},easeInOutBounce:function(e,f,a,h,g){if(f<g/2){return jQuery.easing.easeInBounce(e,f*2,0,h,g)*0.5+a}return jQuery.easing.easeOutBounce(e,f*2-g,0,h,g)*0.5+h*0.5+a}}); 137/*! Respond.js v1.4.2: min/max-width media query polyfill 138 * Copyright 2014 Scott Jehl 139 * Licensed under MIT 140 * http://j.mp/respondjs */ 141 142!function(a){"use strict";a.matchMedia=a.matchMedia||function(a){var b,c=a.documentElement,d=c.firstElementChild||c.firstChild,e=a.createElement("body"),f=a.createElement("div");return f.id="mq-test-1",f.style.cssText="position:absolute;top:-100em",e.style.background="none",e.appendChild(f),function(a){return f.innerHTML='­<style media="'+a+'"> #mq-test-1 { width: 42px; }</style>',c.insertBefore(e,d),b=42===f.offsetWidth,c.removeChild(e),{matches:b,media:a}}}(a.document)}(this),function(a){"use strict";function b(){v(!0)}var c={};a.respond=c,c.update=function(){};var d=[],e=function(){var b=!1;try{b=new a.XMLHttpRequest}catch(c){b=new a.ActiveXObject("Microsoft.XMLHTTP")}return function(){return b}}(),f=function(a,b){var c=e();c&&(c.open("GET",a,!0),c.onreadystatechange=function(){4!==c.readyState||200!==c.status&&304!==c.status||b(c.responseText)},4!==c.readyState&&c.send(null))},g=function(a){return a.replace(c.regex.minmaxwh,"").match(c.regex.other)};if(c.ajax=f,c.queue=d,c.unsupportedmq=g,c.regex={media:/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,comments:/\/\*[^*]*\*+([^/][^*]*\*+)*\//gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\(\s*min\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/,maxw:/\(\s*max\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/,minmaxwh:/\(\s*m(in|ax)\-(height|width)\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/gi,other:/\([^\)]*\)/g},c.mediaQueriesSupported=a.matchMedia&&null!==a.matchMedia("only all")&&a.matchMedia("only all").matches,!c.mediaQueriesSupported){var h,i,j,k=a.document,l=k.documentElement,m=[],n=[],o=[],p={},q=30,r=k.getElementsByTagName("head")[0]||l,s=k.getElementsByTagName("base")[0],t=r.getElementsByTagName("link"),u=function(){var a,b=k.createElement("div"),c=k.body,d=l.style.fontSize,e=c&&c.style.fontSize,f=!1;return b.style.cssText="position:absolute;font-size:1em;width:1em",c||(c=f=k.createElement("body"),c.style.background="none"),l.style.fontSize="100%",c.style.fontSize="100%",c.appendChild(b),f&&l.insertBefore(c,l.firstChild),a=b.offsetWidth,f?l.removeChild(c):c.removeChild(b),l.style.fontSize=d,e&&(c.style.fontSize=e),a=j=parseFloat(a)},v=function(b){var c="clientWidth",d=l[c],e="CSS1Compat"===k.compatMode&&d||k.body[c]||d,f={},g=t[t.length-1],p=(new Date).getTime();if(b&&h&&q>p-h)return a.clearTimeout(i),i=a.setTimeout(v,q),void 0;h=p;for(var s in m)if(m.hasOwnProperty(s)){var w=m[s],x=w.minw,y=w.maxw,z=null===x,A=null===y,B="em";x&&(x=parseFloat(x)*(x.indexOf(B)>-1?j||u():1)),y&&(y=parseFloat(y)*(y.indexOf(B)>-1?j||u():1)),w.hasquery&&(z&&A||!(z||e>=x)||!(A||y>=e))||(f[w.media]||(f[w.media]=[]),f[w.media].push(n[w.rules]))}for(var C in o)o.hasOwnProperty(C)&&o[C]&&o[C].parentNode===r&&r.removeChild(o[C]);o.length=0;for(var D in f)if(f.hasOwnProperty(D)){var E=k.createElement("style"),F=f[D].join("\n");E.type="text/css",E.media=D,r.insertBefore(E,g.nextSibling),E.styleSheet?E.styleSheet.cssText=F:E.appendChild(k.createTextNode(F)),o.push(E)}},w=function(a,b,d){var e=a.replace(c.regex.comments,"").replace(c.regex.keyframes,"").match(c.regex.media),f=e&&e.length||0;b=b.substring(0,b.lastIndexOf("/"));var h=function(a){return a.replace(c.regex.urls,"$1"+b+"$2$3")},i=!f&&d;b.length&&(b+="/"),i&&(f=1);for(var j=0;f>j;j++){var k,l,o,p;i?(k=d,n.push(h(a))):(k=e[j].match(c.regex.findStyles)&&RegExp.$1,n.push(RegExp.$2&&h(RegExp.$2))),o=k.split(","),p=o.length;for(var q=0;p>q;q++)l=o[q],g(l)||m.push({media:l.split("(")[0].match(c.regex.only)&&RegExp.$2||"all",rules:n.length-1,hasquery:l.indexOf("(")>-1,minw:l.match(c.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:l.match(c.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}v()},x=function(){if(d.length){var b=d.shift();f(b.href,function(c){w(c,b.href,b.media),p[b.href]=!0,a.setTimeout(function(){x()},0)})}},y=function(){for(var b=0;b<t.length;b++){var c=t[b],e=c.href,f=c.media,g=c.rel&&"stylesheet"===c.rel.toLowerCase();e&&g&&!p[e]&&(c.styleSheet&&c.styleSheet.rawCssText?(w(c.styleSheet.rawCssText,e,f),p[e]=!0):(!/^([a-zA-Z:]*\/\/)/.test(e)&&!s||e.replace(RegExp.$1,"").split("/")[0]===a.location.host)&&("//"===e.substring(0,2)&&(e=a.location.protocol+e),d.push({href:e,media:f})))}x()};y(),c.update=y,c.getEmValue=u,a.addEventListener?a.addEventListener("resize",b,!1):a.attachEvent&&a.attachEvent("onresize",b)}}(this); 143/********************************************************************************* 144ì ì : ëìì¸ë¸ë , http://designblack.com 145*********************************************************************************/ 146 147!(function($){ 148 $.fn.DB_cate=function(options){ 149 var opt={
150 fadeSpeed:200, 151 mouseEvent:'over', //click, over 152 motionType:'fade' //none, fade 153 }; 154 $.extend(opt,options); 155 return this.each(function(){ 156 var $this=$(this); 157 var $li=$this.find('li'); 158 var $ul=$this.find('ul'); 159 var $d2=$this.find('.d2'); 160 var fadeSpeed=opt.fadeSpeed; 161 var motionType=opt.motionType; 162 var mouseEvent=opt.mouseEvent; 163 var $body=$('body'); 164 165 $d2.each(function(){ 166 //íì´í 167 if($(this).find('>ul').length>0){ 168 $(this).addClass('arrow'); 169 } 170 }); 171 172 if(mouseEvent=='over'){ 173 $li.bind('mouseenter',function(){ 174 $(this).addClass('on'); 175 if(motionType=='none'){ 176 $(this).find('>ul').show(); 177 }else{ 178 $(this).find('>ul').fadeIn(fadeSpeed); 179 } 180 }).bind('mouseleave',function(){ 181 $(this).removeClass('on'); 182 $(this).find('>ul').hide(); 183 }); 184 }else{ 185 $li.bind('click',function(e){ 186 e.stopPropagation(); 187 if($(this).hasClass('fix')){ 188 $(this).removeClass('fix'); 189 if(motionType=='none'){ 190 $(this).find('>ul').hide(); 191 }else{ 192 $(this).find('>ul').fadeOut(fadeSpeed); 193 } 194 }else{ 195 $(this).nextAll().removeClass('fix').find('ul').hide(); 196 $(this).prevAll().removeClass('fix').find('ul').hide(); 197 198 $(this).addClass('fix'); 199 if(motionType=='none'){ 200 $(this).find('>ul').show(); 201 }else{ 202 $(this).find('>ul').fadeIn(fadeSpeed); 203 } 204 } 205 206 }).bind('mouseenter',function(){ 207 $(this).addClass('on'); 208 }).bind('mouseleave',function(){ 209 $(this).removeClass('on'); 210 }); 211 } 212 213 $body.bind('click',function(e){ 214 if(motionType=='none'){ 215 $ul.hide(); 216 }else{ 217 $ul.fadeOut(fadeSpeed); 218 } 219 $li.removeClass('fix'); 220 }) 221 222 }); 223 }; 224})(jQuery); 225 226 227 228 229/* ì ì²´ë©ë´ htmlë²ì ¼ */ 230$('#category_full_m').DB_cate({ 231 mouseEvent:'over', 232 motionType:'fade' 233}); 234 235/* ìë¨ë©ë´ */ 236$('#JS_topMenu').DB_cate({ 237 mouseEvent:'over', 238 motionType:'fade' 239}); 240 241/* ìë¨ë©ë´2 */ 242$('#JS_topMenu2').DB_cate({ 243 mouseEvent:'over', 244 motionType:'fade' 245}); 246 247/* ë¸ëë */ 248$('.categorySub.brand').DB_cate({ 249 mouseEvent:'click', 250 motionType:'fade' 251}); 252 253/* ì¶ê°ë©ë´1 */ 254$('.categorySub.m01').DB_cate({ 255 mouseEvent:'over', 256 motionType:'fade' 257}); 258 259/* ì¶ê°ë©ë´2 */ 260$('.categorySub.m02').DB_cate({ 261 mouseEvent:'over', 262 motionType:'fade' 263}); 264 265/* ì¶ê°ë©ë´3 */ 266$('.categorySub.m03').DB_cate({ 267 mouseEvent:'over', 268 motionType:'fade' 269}); 270 271/* ìë¨ê²ì */ 272$('.SD_headerSearch').DB_cate({ 273 mouseEvent:'click', 274 motionType:'fade' 275}); 276 277 278/* 279 * ì ì : http://designblack.com 280 */ 281 282$(document).ready(function(){ 283 var $d1_wrap = $('.d1-wrap'); 284 var $d1_img = $('.category_img li'); 285 var $d1_list = $d1_wrap.find('.d1'); 286 var len = $d1_list.length; 287 288 $.ajax({ 289 url : '/exec/front/Product/SubCategory', 290 dataType: 'json', 291 success: function(aData) { 292 if (aData == null || aData == 'undefined') { 293 return; 294 } 295 $.each(aData, function(index, key) { 296 var $d1 = $d1_wrap.find('.d1[data-param$="=' + key.parent_cate_no + '"]'); 297 if ($d1.length > 0) { 298 var _index = $d1_list.index($d1); 299 300 if ($d1.hasClass('be') === false) { 301 $d1.addClass('be'); 302 $d1.append('<div class="d2-wrap"><dl></dl><div class="img">'+$d1_img.eq(_index % len).html()+'</div></div>'); 303 } 304 $d1.find('.d2-wrap dl').append('<dd data-param="'+key.param+'" class="d2"><a href="/product/list.html'+key.param+'">'+key.name+'</a></dd>'); 305 return; 306 } 307 308 var $d2 = $d1_wrap.find('.d2[data-param$="=' + key.parent_cate_no + '"]'); 309 if ($d2.length > 0) { 310 if ($d2.hasClass('be') === false) { 311 $d2.addClass('be'); 312 $d2.append('<dl class="d3-wrap"></dl>'); 313 } 314 $d2.find('.d3-wrap').append('<dd data-param="'+key.param+'" class="d3"><a href="/product/list.html'+key.param+'">'+key.name+'</a></dd>'); 315 return; 316 } 317 318 var $d3 = $d1_wrap.find('.d3[data-param$="=' + key.parent_cate_no + '"]'); 319 if ($d3.hasClass('be') === false) { 320 $d3.addClass('be'); 321 $d3.append('<dl class="d4-wrap"></dl>'); 322 } 323 $d3.find('.d4-wrap').append('<dd data-param="'+key.param+'" class="d4"><a href="/product/list.html'+key.param+'">'+key.name+'</a></dd>'); 324 }); 325 326 setCategory(); 327 } 328 }); 329}); 330 331function setCategory(){ 332 //lnb 333 (function(){ 334 var $this=$('#category-lnb'); 335 var $d1=$this.find('.d1'); 336 var $d2=$this.find('.d2'); 337 var $d3=$this.find('.d3'); 338 339 var speed=200; 340 341 $d1.bind('mouseenter',function(){ 342 $(this).addClass('on'); 343 $(this).find('.d2-wrap').stop(true,true).fadeIn(speed); 344 }).bind('mouseleave',function(){ 345 $(this).removeClass('on'); 346 $(this).find('.d2-wrap').stop(true,true).fadeOut(speed); 347 }); 348 $d2.bind('mouseenter',function(){ 349 $d2.css('z-index',0); 350 $(this).css('z-index',1); 351 $(this).find('.d3-wrap').stop(true,true).fadeIn(speed); 352 $(this).addClass('on'); 353 }).bind('mouseleave',function(){ 354 $(this).find('.d3-wrap').stop(true,true).fadeOut(speed); 355 $(this).removeClass('on'); 356 }); 357 $d3.bind('mouseenter',function(){ 358 $d3.css('z-index',0); 359 $(this).css('z-index',1); 360 $(this).find('.d4-wrap').stop(true,true).fadeIn(speed); 361 $(this).addClass('on'); 362 }).bind('mouseleave',function(){ 363 $(this).find('.d4-wrap').stop(true,true).fadeOut(speed); 364 $(this).removeClass('on'); 365 }); 366 367 368 })(); 369 370 371 //full 372 (function(){ 373 var $this=$('#category-full'); 374 var $d1=$this.find('.d1'); 375 var $d2=$this.find('.d2'); 376 var $d3=$this.find('.d3'); 377 var $close=$this.find('.close'); 378 var $full_btn=$('#d_full_btn'); 379 var speed=200; 380 $d1.bind('mouseenter',function(){ 381 $d1.css('z-index',0); 382 $(this).css('z-index',1); 383 $(this).addClass('on'); 384 }).bind('mouseleave',function(){ 385 $(this).removeClass('on'); 386 }); 387 $d2.bind('mouseenter',function(){ 388 $d2.css('z-index',0); 389 $(this).css('z-index',1); 390 $(this).find('.d3-wrap').stop(true,true).fadeIn(speed); 391 $(this).addClass('on'); 392 }).bind('mouseleave',function(){ 393 $(this).find('.d3-wrap').stop(true,true).fadeOut(speed); 394 $(this).removeClass('on'); 395 }); 396 $d3.bind('mouseenter',function(){ 397 $d3.css('z-index',0); 398 $(this).css('z-index',1); 399 $(this).find('.d4-wrap').stop(true,true).fadeIn(speed); 400 $(this).addClass('on'); 401 }).bind('mouseleave',function(){ 402 $(this).find('.d4-wrap').stop(true,true).fadeOut(speed); 403 $(this).removeClass('on'); 404 }); 405 406 $full_btn.bind('click',function(e){ 407 e.stopPropagation(); 408 if($(this).hasClass('on')){ 409 $(this).removeClass('on') 410 $this.fadeOut(speed); 411 }else{ 412 $(this).addClass('on') 413 $this.fadeIn(speed); 414 } 415 }); 416 417 $close.bind('click',function(){ 418 $full_btn.removeClass('on'); 419 $this.fadeOut(speed); 420 }); 421 422 423 $('body').bind('click',function(event){ 424 if($full_btn.hasClass('on')){ 425 $full_btn.removeClass('on'); 426 $this.fadeOut(speed); 427 } 428 }); 429 })(); 430 431 432 //ì¤ë¶ë¥ ì¹´í ê³ ë¦¬ 433 (function(){ 434 var $this=$('.menuCategory'); 435 if($this.length>0){ 436 var $dm2=$this.find('.dm2'); 437 var $dm3=$this.find('.dm3'); 438 var speed=200; 439 $dm2.each(function(){ 440 if($(this).find('.dm3-wrap').length>0){ 441 $(this).addClass('be'); 442 } 443 }); 444 $dm3.each(function(){ 445 if($(this).find('.dm4-wrap').length>0){ 446 $(this).addClass('be'); 447 } 448 }); 449 $dm2.bind('mouseenter',function(){ 450 $(this).addClass('on'); 451 $(this).find('.dm3-wrap').stop(true,true).fadeIn(speed); 452 }).bind('mouseleave',function(){ 453 $(this).removeClass('on'); 454 $(this).find('.dm3-wrap').stop(true,true).fadeOut(speed); 455 }); 456 $dm3.bind('mouseenter',function(){ 457 $(this).addClass('on'); 458 $(this).find('.dm4-wrap').stop(true,true).fadeIn(speed); 459 }).bind('mouseleave',function(){ 460 $(this).removeClass('on'); 461 $(this).find('.dm4-wrap').stop(true,true).fadeOut(speed); 462 }); 463 } 464 })(); 465}; 466 467/********************************************************************************* 468 469 ì ì : http://designblack.com 470 ë¼ì´ì¼ì¤ : 무íì¸ë¼ì´ì¼ì¤, ìì°ì(ëìì¸ì¹êµ¿) 471 í´ë¹ 주ìì ì ìê¶ì ì ë ìì ë¶ê°ì ëë¤. 472 473*********************************************************************************/ 474 475 476 477// jquery.d_fixedMenu.js (ì¤í¬ë¡¤ê³ ì ) 478!function(e){e.fn.d_fixedMenu=function(s){var n={top:0,responseObj:null};return e.extend(n,s),this.each(function(){function s(){i()}function i(){o.scroll(function(){t=o.scrollTop(),null!=n.responseObj&&(r="none"==n.responseObj.css("display")?0:n.responseObj.height()),t>=d+r?f.hasClass("fixed")||(f.addClass("fixed"),f.after('<div class="d_fixed_after" style="height:'+f.height()+'px"></div>')):f.hasClass("fixed")&&(f.removeClass("fixed"),f.next(".d_fixed_after").remove())})}var t,o=e(window),f=e(this),d=f.offset().top-n.top,r=0;s()})}}(jQuery); 479 480 $('#header_01').d_fixedMenu({ 481 top:-1, //.fixed{top:ëì¼ê°} 482 responseObj:$('.JS_topBnr') //ì¤ë²ì í¸ìë¨ì ë³íëëì´ê°ì´ ìëê²½ì° ex) responseObj:$('.DB_etc15') 483 }) 484 485 $('#header_03').d_fixedMenu({ 486 top:41, //.fixed{top:ëì¼ê°} 487 responseObj:$('.JS_topBnr') //ì¤ë²ì í¸ìë¨ì ë³íëëì´ê°ì´ ìëê²½ì° ex) responseObj:$('.DB_etc15') 488 }) 489 490 491 492 493// jquery.d_quickFloating.min.js 494//!function(o){o.fn.d_quickFloating=function(e){var t={dir:"right",openState:1,closeGap:0,motionSpeed:500,cookieDay:1,lightboxSpeed:300};return o.extend(t,e),this.each(function(){function e(){i(),s()}function i(){null==o.cookie(x)&&1==t.openState&&o.cookie(x,"show",{path:"/",expires:t.cookieDay}),"show"==o.cookie(x)?(n=1,p.addClass("d_on")):(n=0,"left"==l?d.css("left",-h+t.closeGap):"right"==l?d.css("right",-h+t.closeGap):"top"==l?d.css("top",-c+t.closeGap):"bottom"==l&&d.css("bottom",-c+t.closeGap)),d.show()}function s(){p.bind("click",function(){"left"==l?1==n?(d.stop().animate({left:-h+t.closeGap},t.motionSpeed,"easeInOutExpo"),o(this).removeClass("d_on"),o.cookie(x,"hide",{path:"/",expires:t.cookieDay})):(d.stop().animate({left:0},t.motionSpeed,"easeInOutExpo"),o(this).addClass("d_on"),o.cookie(x,"show",{path:"/",expires:t.cookieDay})):"right"==l?1==n?(d.stop().animate({right:-h+t.closeGap},t.motionSpeed,"easeInOutExpo"),o(this).removeClass("d_on"),o.cookie(x,"hide",{path:"/",expires:t.cookieDay})):(d.stop().animate({right:0},t.motionSpeed,"easeInOutExpo"),o(this).addClass("d_on"),o.cookie(x,"show",{path:"/",expires:t.cookieDay})):"top"==l?1==n?(d.stop().animate({top:-c+t.closeGap},t.motionSpeed,"easeInOutExpo"),o(this).removeClass("d_on"),o.cookie(x,"hide",{path:"/",expires:t.cookieDay})):(d.stop().animate({top:0},t.motionSpeed,"easeInOutExpo"),o(this).addClass("d_on"),o.cookie(x,"show",{path:"/",expires:t.cookieDay})):"bottom"==l&&(1==n?(d.stop().animate({bottom:-c+t.closeGap},t.motionSpeed,"easeInOutExpo"),o(this).removeClass("d_on"),o.cookie(x,"hide",{path:"/",expires:t.cookieDay})):(d.stop().animate({bottom:0},t.motionSpeed,"easeInOutExpo"),o(this).addClass("d_on"),o.cookie(x,"show",{path:"/",expires:t.cookieDay}))),n=!n,a()})}function a(){o("body").find(".d_on").length>0?(g.addClass("lightbox"),$lightbox.addClass("on"),$lightbox.stop().fadeIn(t.lightboxSpeed)):(g.removeClass("lightbox"),$lightbox.removeClass("on"),$lightbox.stop().fadeOut(t.lightboxSpeed))}var n,d=o(this),p=d.find(".d_toggle"),h=d.width(),c=d.height(),l=t.dir,x="d_quickFloating_"+l,g=o("body");d.hide(),e(),0==o(".d_lightbox").length&&(o("body").prepend('<div class="d_lightbox"></div>'),$lightbox=o(".d_lightbox"),$lightbox.bind("click",function(){o(".d_etc18 .d_toggle").each(function(){o(this).hasClass("d_on")&&o(this).click()})})),a()})}}(jQuery); 495!function(o){o.fn.d_quickFloating=function(e){var t={dir:"right",openState:1,closeGap:0,motionSpeed:500,cookieDay:1,lightboxSpeed:300,autoCloseTime:3e3};return o.extend(t,e),this.each(function(){function e(){i(),s()}function i(){null==o.cookie(u)&&1==t.openState&&o.cookie(u,"show",{path:"/",expires:t.cookieDay}),"show"==o.cookie(u)?(d=1,l.addClass("d_on")):(d=0,"left"==m?c.css("left",-h+t.closeGap):"right"==m?c.css("right",-h+t.closeGap):"top"==m?c.css("top",-r+t.closeGap):"bottom"==m&&c.css("bottom",-r+t.closeGap)),c.show()}function s(){c.bind("mouseenter",function(){g=1}).bind("mouseleave",function(){g=0}),l.bind("click",function(){"left"==m?1==d?(c.stop().animate({left:-h+t.closeGap},t.motionSpeed,"easeInOutExpo"),o(this).removeClass("d_on"),o.cookie(u,"hide",{path:"/",expires:t.cookieDay})):(c.stop().animate({left:0},t.motionSpeed,"easeInOutExpo"),o(this).addClass("d_on"),o.cookie(u,"show",{path:"/",expires:t.cookieDay})):"right"==m?1==d?(c.stop().animate({right:-h+t.closeGap},t.motionSpeed,"easeInOutExpo"),o(this).removeClass("d_on"),o.cookie(u,"hide",{path:"/",expires:t.cookieDay})):(c.stop().animate({right:0},t.motionSpeed,"easeInOutExpo"),o(this).addClass("d_on"),o.cookie(u,"show",{path:"/",expires:t.cookieDay})):"top"==m?1==d?(c.stop().animate({top:-r+t.closeGap},t.motionSpeed,"easeInOutExpo"),o(this).removeClass("d_on"),o.cookie(u,"hide",{path:"/",expires:t.cookieDay})):(c.stop().animate({top:0},t.motionSpeed,"easeInOutExpo"),o(this).addClass("d_on"),o.cookie(u,"show",{path:"/",expires:t.cookieDay})):"bottom"==m&&(1==d?(c.stop().animate({bottom:-r+t.closeGap},t.motionSpeed,"easeInOutExpo"),o(this).removeClass("d_on"),o.cookie(u,"hide",{path:"/",expires:t.cookieDay})):(c.stop().animate({bottom:0},t.motionSpeed,"easeInOutExpo"),o(this).addClass("d_on"),o.cookie(u,"show",{path:"/",expires:t.cookieDay}))),0==d&&n(),d=!d,a()})}function a(){o("body").find(".d_on").length>0?(x.addClass("lightbox"),$lightbox.addClass("on"),$lightbox.stop().fadeIn(t.lightboxSpeed)):(x.removeClass("lightbox"),$lightbox.removeClass("on"),$lightbox.stop().fadeOut(t.lightboxSpeed))}function n(){var o=0;p=setInterval(function(){0==g&&(o+=500),1==d?o>t.autoCloseTime&&(clearInterval(p),l.click()):clearInterval(p)},500)}var d,p,c=o(this),l=c.find(".d_toggle"),h=c.width(),r=c.height(),m=t.dir,u="d_quickFloating_"+m,x=o("body"),g=0;c.hide(),e(),0==o(".d_lightbox").length&&(o("body").prepend('<div class="d_lightbox"></div>'),$lightbox=o(".d_lightbox"),$lightbox.bind("click",function(){o(".d_etc18 .d_toggle").each(function(){o(this).hasClass("d_on")&&o(this).click()})})),a()})}}(jQuery); 496 497 //ì°ì¸¡ ê³ ì ë° 498 $('.d_etc18.right').d_quickFloating({ 499 dir:"right", 500 openState:1, //ì¤íìí(1ì´ë¦¼/0ë«í) 501 closeGap:0, //ë«íë ì°ì¸¡ì¬ë°± 502 motionSpeed:700, //ë«íìë(0~) 503 cookieDay:2, //ì¿ í¤ì ì§(ì¼) 504 autoCloseTime:5000 //ìëë«íìê°(1ì´=1000) 505 }); 506 507 508 509 510// jquery.DB_popUpBanner.js 511!(function(k){k.fn.DB_popUpBanner=function(n){var c={motionType:"x",mouseEvent:"click",motionSpeed:300,autoRollingTime:3E3};k.extend(c,n);return this.each(function(){function l(){a="next"==p?++a%m:0==a?m-1:--a%m;q()}function q(){switch(c.motionType){case "fade":d.eq(g).stop(!0,!0).fadeOut(c.motionSpeed);d.eq(a).stop(!0,!0).fadeIn(c.motionSpeed);break;case "x":h.stop().animate({left:-a*r},c.motionSpeed,'easeInOutExpo');break;case "y":h.stop().animate({top:-a*s},c.motionSpeed,'easeInOutExpo');break;default:d.eq(g).hide(),d.eq(a).show()}var b= 512f.eq(a).position();n.stop().animate({left:b.left,top:b.top},c.motionSpeed,'easeInOutExpo');u(f.eq(g).find("img"),"src","_on","_off");u(f.eq(a).find("img"),"src","_off","_on");f.eq(g).removeClass("DB_select");f.eq(a).addClass("DB_select");g=a}function u(b,a,c,d){var e=b.attr(a);-1!=String(e).search(c)&&
512b.attr(a,e.replace(c,d))}var e=k(this),h=e.find(".DB_img > ul"),d=h.find("> li"),f=e.find(".DB_menu > ul").find("> li"),n=e.find(".DB_box"),w=e.find(".DB_prev"),x=e.find(".DB_next"),v,m=d.length,a=0,g=-1,t=0,p="next", 513r=d.width(),s=d.height();(function(){for(var b=0;b<m;b++)switch(c.motionType){case "x":d.eq(b).css({left:r*b});0==b&&h.css("left",-a*r);break;case "y":d.eq(b).css({top:s*b});0==b&&h.css("top",-a*s);break;default:b==a?d.eq(b).show():d.eq(b).hide()}})();(function(){e.bind("mouseenter",function(){clearInterval(t)});e.bind("mouseleave",function(){t=setInterval(l,c.autoRollingTime)});v="over"==c.mouseEvent?"mouseenter":"click";f.bind(v,function(){a=k(this).index();q()});w.bind("click",function(){p="prev"; 514l()});x.bind("click",function(){p="next";l()})})();t=setInterval(l,c.autoRollingTime);q()})}})(jQuery); 515 516 517 $('.multiPopup.v61').DB_popUpBanner({ 518 motionSpeed:500, //모ì ìë 519 motionType:'x', //'x', 'y', 'fade', 'none' 520 mouseEvent:'click', //'click','over' 521 autoRollingTime:3000 //ìë롤ë§ìë(ë°ë¦¬ì´) 522 }); 523 524 $('.multiPopup.v62').DB_popUpBanner({ 525 motionSpeed:500, //모ì ìë 526 motionType:'fade', //'x', 'y', 'fade', 'none' 527 mouseEvent:'click', //'click','over' 528 autoRollingTime:3000 //ìë롤ë§ìë(ë°ë¦¬ì´) 529 }); 530 531 $('.multiPopup.v31').DB_popUpBanner({ 532 motionSpeed:500, //모ì ìë 533 motionType:'x', //'x', 'y', 'fade', 'none' 534 mouseEvent:'click', //'click','over' 535 autoRollingTime:3000 //ìë롤ë§ìë(ë°ë¦¬ì´) 536 }); 537 538 $('.multiPopup.v32').DB_popUpBanner({ 539 motionSpeed:500, //모ì ìë 540 motionType:'fade', //'x', 'y', 'fade', 'none' 541 mouseEvent:'click', //'click','over' 542 autoRollingTime:3000 //ìë롤ë§ìë(ë°ë¦¬ì´) 543 }); 544 545 $('.multiPopup.c31').DB_popUpBanner({ 546 motionSpeed:500, //모ì ìë 547 motionType:'x', //'x', 'y', 'fade', 'none' 548 mouseEvent:'click', //'click','over' 549 autoRollingTime:3000 //ìë롤ë§ìë(ë°ë¦¬ì´) 550 }); 551 552 $('.multiPopup.c32').DB_popUpBanner({ 553 motionSpeed:500, //모ì ìë 554 motionType:'fade', //'x', 'y', 'fade', 'none' 555 mouseEvent:'click', //'click','over' 556 autoRollingTime:3000 //ìë롤ë§ìë(ë°ë¦¬ì´) 557 }); 558 559 $('.multiPopup.w41').DB_popUpBanner({ 560 motionSpeed:500, //모ì ìë 561 motionType:'x', //'x', 'y', 'fade', 'none' 562 mouseEvent:'click', //'click','over' 563 autoRollingTime:3000 //ìë롤ë§ìë(ë°ë¦¬ì´) 564 }); 565 566 $('.multiPopup.w42').DB_popUpBanner({ 567 motionSpeed:500, //모ì ìë 568 motionType:'fade', //'x', 'y', 'fade', 'none' 569 mouseEvent:'click', //'click','over' 570 autoRollingTime:3000 //ìë롤ë§ìë(ë°ë¦¬ì´) 571 }); 572 573 $('.multiPopup.r51').DB_popUpBanner({ 574 motionSpeed:500, //모ì ìë 575 motionType:'fade', //'x', 'y', 'fade', 'none' 576 mouseEvent:'over', //'click','over' 577 autoRollingTime:3000 //ìë롤ë§ìë(ë°ë¦¬ì´) 578 }); 579 580 $('.multiPopup.z_sample').DB_popUpBanner({ 581 motionSpeed:500, //모ì ìë 582 motionType:'fade', //'x', 'y', 'fade', 'none' 583 mouseEvent:'over', //'click','over' 584 autoRollingTime:3000 //ìë롤ë§ìë(ë°ë¦¬ì´) 585 }); 586 587 588 589 590 591 592// jquery.DB_topFloating.js 593!(function(c){c.fn.DB_topFloating=function(d){var a={checkbox_id:"",layer:"off",openType:"slide",openDelayTime:500,closeType:"slide",autoCloseTime:99999,slideSpeed:800,day:1,bugHeight:0};c.extend(a,d);return this.each(function(){function d(){b.slideDown(a.slideSpeed)}function e(){0==a.bugHeight?b.slideUp(a.slideSpeed):b.animate({"margin-top":-a.bugHeight},a.slideSpeed)}function f(){g.bind("click",function(){"slide"==a.closeType?e():b.hide();1==h.checked&&c.cookie("DB_topBanner","hide",{path:"/",expires:a.day})})} 594var b=c(this),g=b.find(".DB_closeBtn"),h=a.checkbox_id;"on"==a.layer?b.css({position:"absolute"}):b.css({position:"relative"});"none"==a.openType&&b.show();"hide"==c.cookie("DB_topBanner")?b.hide():("slide"==a.openType&&(b.hide(),setTimeout(d,a.openDelayTime)),setTimeout(e,a.autoCloseTime+a.openDelayTime),f())})}})(jQuery); 595 596 // ìµìë¨ë°°ë 597 $('.JS_topBnr').DB_topFloating({
598 checkbox_id:document.getElementById('d_topBanner_check'), //jquery-1.4 checked ë²ê·¸íí¼(ì¹´í24) 599 layer:"off", //본문과겹침(on:겹침, off:ê²¹ì¹ì§ ìì) 600 openType:"none", //ì¤ííí(slide:ë°ë¦¼ , none: ìì) 601 openDelayTime:300, //íì´ì§ì¤íí ëë ì´ëì´ ì´ë¦¼(slideì¸ ê²½ì°) 602 closeType:"slide", //ë«ê¸°íí(slide:ë°ë¦¼ , none:ìì) 603 autoCloseTime:9999999, //ìëë«ê¸°ìê°(ë°ë¦¬ì´) 604 slideSpeed:500, //모ì ìë(ë°ë¦¬ì´) 605 day:1, //ë³´ì´ì§ì기 기ê°(ì¼) 606 bugHeight:0 //ieìì ë²ê·¸ê° ë°ìí ê²½ì° ë°°ëëì´ê°ì ì§ì íì¸ì(ex: bugHeight:100) 607 }); 608 609 610 611 612 613 614// jquery.DB_prd_thumb.js 615!(function($){$.fn.DB_prd_thumb=function(r){var s={motionSpeed:300};$.extend(s,r);return this.each(function(){var c=$(this);var d=c.find('.img');var f=d.find('> li');for(var i=0;i<f.length;i++){var g=f.eq(i);if(g.find('img').attr('src')==''){g.remove()}};f=d.find('> li');var h=c.find('.arrow');var j=c.find('.next');var k=c.find('.prev');var l=f.length;if(l==1){c.remove();return};var m=c.find('.btn');if(m.find('li').length==0){for(var i=0;i<l;i++){m.append('<li class=n'+(i+1)+'>'+(i+1)+'</li>')}};var n=m.find('> li');var o=0;var p=0;var q='next';init();function init(){setCss();setMouseEvent()};function setCss(){for(var i=0;i<l;i++){var a=f.eq(i);a.css({'top':0,'left':0});if(i==o){a.show()}else{a.hide()}};n.eq(p).removeClass('on');n.eq(o).addClass('on');p=o};function setMouseEvent(){c.bind('mouseenter',function(){$(this).addClass('on')});c.bind('mouseleave',function(){$(this).removeClass('on');if(o!=0){o=0;setAnimation()}});n.bind('mouseenter',function(){var a=$(this).index();if(a>o){q='next'}else{q='prev'};if(o!=a){o=a;setAnimation()}});j.bind('click',function(e){e.preventDefault();q='next';changeCurrent()});k.bind('click',function(e){e.preventDefault();q='prev';changeCurrent()})};function changeCurrent(){if(q=='next'){o=++o%l}else if(q=='prev'){o=(o==0)?l-1:--o%l};setAnimation()};function setAnimation(){var a=f.eq(p);var b=f.eq(o);a.stop(true,true).fadeOut(s.motionSpeed);b.stop(true,true).fadeIn(s.motionSpeed);n.eq(p).removeClass('on');n.eq(o).addClass('on');p=o}})}})(jQuery); 616$('.prdList .d_thumb').DB_prd_thumb(); 617 618 619 620 621 622// jquery.DB_popupWin2.min.js 623!function(e){e.fn.DB_popupWin2=function(i){var t={key:"",moveSpeed:300,openDelayTime:0,autoCloseTime:5e3,yGap:0,day:1,cookieName:"DB_popupWin2",checkbox_id:""};return e.extend(t,i),this.each(function(){function i(){"hide"==e.cookie(t.cookieName)?(l.css({left:0,top:0+t.yGap,width:y.w,height:y.h}).hide(),m.hide()):(o(),l.css("visibility","visible")),d()}function o(){0==t.openDelayTime?a=setTimeout(c,t.autoCloseTime):(l.hide(),u=setTimeout(n,t.openDelayTime))}function n(){h(),a=setTimeout(c,t.autoCloseTime+t.moveSpeed)}function c(){l.animate({left:0,top:0+t.yGap,width:y.w,height:y.h},t.moveSpeed,function(){e(this).fadeOut(),1==t.checkbox_id.checked&&e.cookie(t.cookieName,"hide",{path:"/",expires:t.day})})}function h(){"none"==l.css("display")&&l.css({visibility:"visible",left:0,top:0+t.yGap,width:y.w,height:y.h}).fadeIn().animate({left:w.l,top:w.t,width:w.w,height:w.h},t.moveSpeed)}function d(){s.bind("mouseenter",function(){0==T&&clearTimeout(a)}),s.bind("mouseleave",function(){0==T&&(a=setTimeout(c,t.autoCloseTime))}),f.bind("click",function(){T=0,clearTimeout(a),c()}),p.bind("click",function(){T=1,h(),clearTimeout(a),clearTimeout(u)})}var a,u,s=e(this),p=s.find(".d_open"),l=s.find(".d_winBanner"),f=s.find(".d_close"),m=s.find(".d_checkBox"),T=0,y={l:s.position().left,t:s.position().top,w:s.width(),h:s.height()},w={l:l.position().left,t:l.position().top,w:l.width(),h:l.height()};i()})}}(jQuery); 624 625 // ì¢ì¸¡íë¨ íì ë°°ë 626 $('.JS_layerBnr').DB_popupWin2({ 627 moveSpeed:200, 628 openDelayTime:2000, //ì¤íìëë ì´ 629 autoCloseTime:3000, //ì¼ì ìê°í ìë ë«í(1000=1ì´) 630 day:1, //1ì¼ ëì ì´ì§ì기 631 cookieName:'popup_bl', //ì¿ í¤ì´ë¦(ì¬ë¬ê°ë¥¼ ì í í ê²½ì° ì´ë¦ì ë¬ë¦¬í´ì¼í¨) 632 checkbox_id:document.getElementById('d_check1') //jquery-1.4 checked ë²ê·¸íí¼ 633 }); 634 635 636 637 638// jquery.DB_tabArrowSlideMove.min.js 639!function(n){n.fn.DB_tabArrowSlideMove=function(e){var t={motionType:"fade",motionSpeed:300,autoRollingTime:3e3,arrowVisible:!0,overRolling:!1,random:!1,easing:"easeInOutExpo"};return n.extend(t,e),this.each(function(){function e(){i(),o(),s()}function i(){0==O&&(c.hide(),h.hide());for(var n=0;v>n;n++){var e=p.eq(n);switch(V){case"x":n==x?e.css({left:0,top:0}):e.css({left:M*n,top:0});break;case"y":n==x?e.css({top:0,left:0}):e.css({top:_*n,left:0});break;default:e.css({top:0,left:0}),n==x?e.show():e.hide()}}b.removeClass("on"),b.eq(x).addClass("on"),b.find("span").stop().css("width",0),b.eq(x).find("span").animate({width:"100%"},t.autoRollingTime,"linear"),S=x}function o(){r.bind("mouseenter",function(){A=!0,0==I&&1==y&&b.eq(x).find("span").stop(),0==O&&(c.show(),h.show())}),r.bind("mouseleave",function(){if(A=!1,0==I&&1==y){var n=t.autoRollingTime-t.autoRollingTime*b.eq(x).find("span").width()/b.eq(x).find("span").parent().width();b.eq(x).find("span").animate({width:"100%"},n,"linear")}0==O&&(c.hide(),h.hide()),!R||"x"==V&&"y"==V||(q="random")}),b.bind("mouseenter",function(){var e=n(this).index();q=e>x?"next":"prev",x!=e&&(x=e,d())}),c.bind("mouseenter",function(){k=!0}),c.bind("mouseleave",function(){k=!1}),m.bind("click",function(){q="next",a()}),u.bind("click",function(){q="prev",a()}),h.bind("click",function(){y?(y=!1,f(h.find("img"),"src","_on","_off")):(y=!0,f(h.find("img"),"src","_off","_on"))})}function a(){if(y||k){if("next"==q)x=++x%v;else if("prev"==q)x=0==x?v-1:--x%v;else for(var n=0;10>n&&(x=Math.floor(Math.random()*v),S==x);n++);d()}}function s(){j>0&&setInterval(function(){0!=A&&1!=I||(T++,T%Math.ceil(j/50)==0&&a())},50)}function d(){var n=p.eq(S),e=p.eq(x);"fade"==V?(n.stop(!0,!0).fadeOut(t.motionSpeed),e.stop(!0,!0).fadeIn(t.motionSpeed)):"x"==V?"next"==q||"random"==q?(n.stop().css("left",0).animate({left:-M},t.motionSpeed,C),e.stop().css("left",M).animate({left:0},t.motionSpeed,C)):(n.stop().css("left",0).animate({left:M},t.motionSpeed,C),e.stop().css("left",-M).animate({left:0},t.motionSpeed,C)):"y"==V?"next"==q||"random"==q?(n.stop().css("top",0).animate({top:-_},t.motionSpeed,C),e.stop().css("top",_).animate({top:0},t.motionSpeed,C)):(n.stop().css("top",0).animate({top:_},t.motionSpeed,C),e.stop().css("top",-_).animate({top:0},t.motionSpeed,C)):(n.hide(),e.show()),b.removeClass("on"),b.eq(x).addClass("on"),b.find("span").stop().css("width",0),0!=A&&1!=I||b.eq(x).find("span").animate({width:"100%"},t.autoRollingTime,"linear"),T=1,S=x}function f(n,e,t,i){var o=n.attr(e);-1!=String(o).search(t)&&n.attr(e,o.replace(t,i))}
639var r=n(this),l=r.find(".img"),p=l.find("> li"),c=r.find(".arrow"),m=r.find(".next"),u=r.find(".prev"),h=r.find(".auto"),v=p.length,g=r.find(".btn");if(0==g.find("li").length)for(var w=0;v>w;w++)g.append("<li class=n"+(w+1)+"><span>"+(w+1)+"</span></li>");var b=g.find("> li"),x=0,S=0,q="next",R=t.random;R&&(x=Math.floor(Math.random()*v),S=x,q="random");var T=0,y=!0,k=!1,M=p.width(),_=p.height(),C=t.easing,I=t.overRolling,O=t.arrowVisible,V=t.motionType,j=t.autoRollingTime,A=!1;e()})}}(jQuery); 640 641 //ìµìë¨ë°°ë ë¡¤ë§ 642 $('.JS_topBnr_roll').DB_tabArrowSlideMove({ 643 motionType:'y', //모ì íì ('none','x','y','fade') 644 motionSpeed:600, //모ì ìë 645 autoRollingTime:6000, //ìë롤ë§ìë(ë°ë¦¬ì´) 646 arrowVisible:true, //ë©ë´ë³´ì´ê¸°(true,false) 647 overRolling:false //ë§ì°ì¤ì¤ë²ììë(true,false) 648 }); 649 650 //í¤ëë°°ë 651 $('.JS_headerBnr').DB_tabArrowSlideMove({ 652 motionType:'fade', //모ì íì ('none','x','y','fade') 653 motionSpeed:1000, //모ì ìë 654 autoRollingTime:3000, //ìë롤ë§ìë(ë°ë¦¬ì´) 655 arrowVisible:true, //ë©ë´ë³´ì´ê¸°(true,false) 656 overRolling:false //ë§ì°ì¤ì¤ë²ììë(true,false) 657 }); 658 659 //í¤ëë°°ë2 660 $('.JS_headerBnr2').DB_tabArrowSlideMove({ 661 motionType:'y', //모ì íì ('none','x','y','fade') 662 motionSpeed:800, //모ì ìë 663 autoRollingTime:8000, //ìë롤ë§ìë(ë°ë¦¬ì´) 664 arrowVisible:true, //ë©ë´ë³´ì´ê¸°(true,false) 665 overRolling:false //ë§ì°ì¤ì¤ë²ììë(true,false) 666 }); 667 668 //ë©ì¸ì¬ë¼ì´ëë°°ë 669 $('.JS_mainBnr').DB_tabArrowSlideMove({ 670 motionType:'fade', //모ì íì ('none','x','y','fade') 671 motionSpeed:600, //모ì ìë 672 autoRollingTime:5000, //ìë롤ë§ìë(ë°ë¦¬ì´) 673 arrowVisible:true, //ë©ë´ë³´ì´ê¸°(true,false) 674 overRolling:false //ë§ì°ì¤ì¤ë²ììë(true,false) 675 }); 676 677 //ì¬ë¼ì´ëë°°ë1 678 $('.JS_23165_01').DB_tabArrowSlideMove({ 679 motionType:'x', //모ì íì ('none','x','y','fade') 680 motionSpeed:800, //모ì ìë 681 autoRollingTime:4000, //ìë롤ë§ìë(ë°ë¦¬ì´) 682 arrowVisible:true, //ë©ë´ë³´ì´ê¸°(true,false) 683 overRolling:false //ë§ì°ì¤ì¤ë²ììë(true,false) 684 }); 685 686 //í롤ë§ìí 687 $('#JS_tabRolling1').DB_tabArrowSlideMove({ 688 motionType:'fade', //모ì íì ('none','x','y','fade') 689 motionSpeed:300, //모ì ìë 690 autoRollingTime:7000, //ìë롤ë§ìë(ë°ë¦¬ì´) 691 arrowVisible:true, //ë©ë´ë³´ì´ê¸°(true,false) 692 overRolling:false //ë§ì°ì¤ì¤ë²ììë(true,false) 693 }); 694 695 //ìì´ëë°°ë 696 $('.JS_wideBnr').DB_tabArrowSlideMove({ 697 motionType:'fade', //모ì íì ('none','x','y','fade') 698 motionSpeed:300, //모ì ìë 699 autoRollingTime:5000, //ìë롤ë§ìë(ë°ë¦¬ì´) 700 arrowVisible:true, //ë©ë´ë³´ì´ê¸°(true,false) 701 overRolling:false //ë§ì°ì¤ì¤ë²ììë(true,false) 702 }); 703 704 //íµë°°ë 705 $('.JS_quickBnr').DB_tabArrowSlideMove({ 706 motionType:'y', //모ì íì ('none','x','y','fade') 707 motionSpeed:800, //모ì ìë 708 autoRollingTime:3000, //ìë롤ë§ìë(ë°ë¦¬ì´) 709 arrowVisible:true, //ë©ë´ë³´ì´ê¸°(true,false) 710 overRolling:false //ë§ì°ì¤ì¤ë²ììë(true,false) 711 }); 712 713 //ìì¸íì´ì§ë°°ë 714 $('.JS_detailBnr').DB_tabArrowSlideMove({ 715 motionType:'x', //모ì íì ('none','x','y','fade') 716 motionSpeed:800, //모ì ìë 717 autoRollingTime:5000, //ìë롤ë§ìë(ë°ë¦¬ì´) 718 arrowVisible:true, //ë©ë´ë³´ì´ê¸°(true,false) 719 overRolling:false //ë§ì°ì¤ì¤ë²ììë(true,false) 720 }); 721 722 723 724 725 726 727 728// jquery.DB_slideStepBanner.min.js 729!function(i){i.fn.DB_slideStepBanner=function(n){var t={key:"",moveSpeed:500,axis:"x",dir:"next",autoRollingTime:5e3,limitNum:3};return i.extend(t,n),this.each(function(){function n(){e(),l>t.limitNum?(o(),u()):(r.hide(),p.hide())}function e(){for(var i=0;l>i;i++){var n=d.eq(i);v[i]=n,h[i]=x*i,"x"==t.axis?n.css({position:"absolute",left:x*i}
729):n.css({position:"absolute",top:x*i})}}function o(){a.bind("mouseenter",function(){S=1}).bind("mouseleave",function(){S=0}),r.bind("click",function(){g&&(g=0,t.dir="next",s())}),p.bind("click",function(){g&&(g=0,t.dir="prev",s())})}function s(){for(var n=0;l>n;n++)"x"==t.axis?"next"==t.dir?v[n].css("left",h[n]).animate({left:h[n]-x},t.moveSpeed,"easeInOutExpo",function(){0==i(this).index()&&(g=1,v.push(v.shift()))}):(0==n&&v.unshift(v.pop()),v[n].css("left",h[n]-x).animate({left:h[n]},t.moveSpeed,"easeInOutExpo",function(){0==i(this).index()&&(g=1)})):"next"==t.dir?v[n].css("top",h[n]).animate({top:h[n]-x},t.moveSpeed,"easeInOutExpo",function(){0==i(this).index()&&(g=1,v.push(v.shift()))}):(0==n&&v.unshift(v.pop()),v[n].css("top",h[n]-x).animate({top:h[n]},t.moveSpeed,"easeInOutExpo",function(){0==i(this).index()&&(g=1)}))}function u(){m=setInterval(f,t.autoRollingTime)}function f(){0==S&&s()}var a=i(this),c=a.find(".DB_imgSet"),d=c.find(">li"),r=a.find(".DB_nextBtn"),p=a.find(".DB_prevBtn"),l=d.length,x=0;x="x"==t.axis?d.width()+1*String(d.css("margin-right")).slice(0,-2):d.height()+1*String(d.css("margin-bottom")).slice(0,-2);var m,h=[],v=[],g=1,S=0;n()})}}(jQuery); 730 731 /* ë¸ëë ë¡ê³ ë¡¤ë§ */ 732 $('.JS_brandLogo').DB_slideStepBanner({ 733 moveSpeed:700, //ì´ëìë 734 axis:'x', //ì´ëë°©í¥ 735 dir:'next', //ì§íë°©í¥('next','prev') 736 autoRollingTime:1500, //ìë롤ë§ìê°(ë°ë¦¬ì´) 737 limitNum:1 738 }); 739 740 /* MD's PICK */ 741 $('.JS_rollingItem').DB_slideStepBanner({ 742 moveSpeed:700, //ì´ëìë 743 axis:'x', //ì´ëë°©í¥ 744 dir:'next', //ì§íë°©í¥('next','prev') 745 autoRollingTime:2500, //ìë롤ë§ìê°(ë°ë¦¬ì´) 746 limitNum:1 747 }); 748 749 /* JS_23165_05 */ 750 $('.JS_23165_05').DB_slideStepBanner({ 751 moveSpeed:1000, //ì´ëìë 752 axis:'x', //ì´ëë°©í¥ 753 dir:'next', //ì§íë°©í¥('next','prev') 754 autoRollingTime:4000, //ìë롤ë§ìê°(ë°ë¦¬ì´) 755 limitNum:1 756 }); 757 758 /* íµê³µì§ì¬í */ 759 $('.JS_quickNotice').DB_slideStepBanner({ 760 moveSpeed:800, //ì´ëìë 761 axis:'y', //ì´ëë°©í¥ 762 dir:'next', //ì§íë°©í¥('next','prev') 763 autoRollingTime:3000, //ìë롤ë§ìê°(ë°ë¦¬ì´) 764 limitNum:1 765 }); 766 767 768 769 770// jquery.DB_tabSlideRollWide.js 771!(function($){$.fn.DB_tabSlideRollWide=function(z){var A={speed:500,autoRollingTime:5000,easing:'easeInOutExpo'};$.extend(A,z);return this.each(function(){var f=$(this);var g=f.find('.mask');var h=f.find('.img');var j=h.find('li');var l=f.find('.btn');var m;var n=f.find('.next');var o=f.find('.prev');var p=j.length;var q=A.speed;var r=A.easing;var s=j.width();var t=A.autoRollingTime;var u=0;var v="next";var w=[];var x=1;var y=false;init();function init(){setCss();setMouseEvent();setEnterFrame();changneMenu();winResize()}function winResize(){h.css({'left':(f.width()-s)/2});$(window).resize(function(){h.css({'left':(f.width()-s)/2})})};function setCss(){for(var i=0;i<p;i++){var a=j.eq(i);w[i]=a;w[i].data('pos',s*i);a.css({position:'absolute',left:s*i})};h.css({position:'relative'});var b=w[0].data('pos')-s;w[p-1].css({left:b});w[p-1].data('pos',b);w.unshift(w.pop());if(l.find('li').length==0){for(var i=0;i<p;i++){l.append('<li></li>')}};m=l.find('li')};function setMouseEvent(){f.bind('mouseenter',function(){y=true}).bind('mouseleave',function(){y=false});n.bind('click',function(){if(x){x=0;v="next";setAnimation()}});o.bind('click',function(){if(x){x=0;v="prev";setAnimation()}});m.bind('click',function(){var a=$(this).index();var b=a-u;if(x&&b!=0){x=0;if(Math.abs(b)>p/2){if(b>0){b-=p}else if(b<0){b+=p}};if(b>0){v="next";setAnimation(b)}else if(b<0){v="prev";setAnimation(Math.abs(b))}}})};function setAnimation(b){if(b==null){b=1};if(v=="next"){for(var i=0;i<b;i++){u=++u%p};for(var i=0;i<p;i++){var c=w[i];var d=c.data('pos')-s*b;c.data('pos',d);c.stop().animate({left:d},q,r,function(){if($(this).index()==0){for(var k=0;k<b;k++){var a=w[p-1].data('pos')+s;w[0].css({left:a}).data('pos',a);w.push(w.shift())};x=1}})}}else{for(var i=0;i<b;i++){u=(u==0)?p-1:--u%p;var e=w[0].data('pos')-s;w[p-1].data('pos',e).css({'left':e});w.unshift(w.pop())}for(var i=0;i<p;i++){var c=w[i];var d=c.data('pos')+s*b;c.data('pos',d);c.stop().animate({left:d},q,r,function(){x=1})}};changneMenu()};function changeImg(){if(y==false){setAnimation()}};
771function setEnterFrame(){if(t!='none'){setInterval(changeImg,t)}};function changneMenu(){m.removeClass('on');m.eq(u).addClass('on')}})}})(jQuery); 772 773 $('.JS_23165_05').DB_tabSlideRollWide({ 774 speed:600, //ì´ëìë(ë°ë¦¬ì´) 775 autoRollingTime:6000 //ìë롤ë§ìê°(ë°ë¦¬ì´) 776 }); 777 778 779 780 781 782 783// jquery.DB_slideUpDown.js 784!(function(c){c.fn.DB_slideUpDown=function(g){var a={moveSpeed:500,cookieName:null};c.extend(a,g);return this.each(function(){var f=c(this),d=f.find(".DB_banner"),b=f.find(".DB_btn"),e;null!=a.cookieName&&("hide"==c.cookie(a.cookieName)&&d.hide(),"show"==c.cookie(a.cookieName)&&d.show());"block"==d.css("display")?(e=1,b.attr("src",b.attr("src").replace("_on","_off"))):(e=0,b.attr("src",b.attr("src").replace("_off","_on")));(function(){b.bind("click",function(){e?(d.stop(!0,!0).slideUp(a.moveSpeed), 785b.attr("src",b.attr("src").replace("_off","_on")),null!=a.cookieName&&c.cookie(a.cookieName,"hide",{path:"/",expires:1})):(d.stop(!0,!0).slideDown(a.moveSpeed),b.attr("src",b.attr("src").replace("_on","_off")),null!=a.cookieName&&c.cookie(a.cookieName,"show",{path:"/",expires:1}));e=!e})})()})}})(jQuery); 786 787 $('.product_addproduct').DB_slideUpDown({ 788 moveSpeed:200, //ì´ëìë(ë°ë¦¬ì´) 789 cookieName:'product_addproduct' 790 }); 791 792 793 794 795 796 797// jquery.d_lightBox.js 798!function(t){t.fn.d_lightBox=function(e){var i={speed:300,opacity:.8};return t.extend(i,e),this.each(function(){function e(){h()}function d(){0==W&&(t("body").append('<div id="dd_lightBox_overlay"></div><div id="dd_lightBox"><img id="dd_img" src=""><iframe id="dd_iframe" frameborder="0" allowfullscreen></iframe><div id="dd_next"></div><div id="dd_prev"></div><div id="dd_page"></div><div id="dd_title"></div><div id="dd_close"></div></div>'),f=t("#dd_lightBox_overlay"),f.css("opacity",i.opacity),s=t("#dd_lightBox"),c=s.find("#dd_img"),l=s.find("#dd_iframe"),p=s.find("#dd_next"),u=s.find("#dd_prev"),g=s.find("#dd_close"),$page=s.find("#dd_page"),$title=s.find("#dd_title"),s.css({left:(f.width()-s.outerWidth())/2,top:(f.height()-s.outerHeight())/2}),p.hide(),u.hide(),f.bind("click",function(){f.fadeOut(i.speed,function(){t(this).remove()}),l.css("display","none").remove(),s.remove(),W=0}),g.bind("click",function(){f.click()}),p.bind("click",function(){b-1>H&&(H++,_.eq(H).click())}),u.bind("click",function(){0!=H&&(H--,_.eq(H).click())}),s.bind("mouseenter",function(){y=!0,r()}).bind("mouseleave",function(){y=!1,r()}),t(window).resize(function(){m="video"==x.type?{left:(f.width()-l.outerWidth())/2,top:(f.height()-l.outerHeight())/2,width:l.outerWidth(),height:l.outerHeight()}:{left:(f.width()-c.outerWidth())/2,top:(f.height()-c.outerHeight())/2,width:c.outerWidth(),height:c.outerHeight()},s.css({left:m.left,top:m.top,width:m.width,height:m.height})}),W=1)}function h(){_.bind("click",function(e){d(),e.preventDefault(),H=_.index(t(this));var i=t(this);x=i.attr("data-size")?{href:i.attr("href"),title:i.attr("data-title"),type:i.attr("data-type"),w:i.attr("data-size").split("x")[0],h:i.attr("data-size").split("x")[1]}:{href:i.attr("href"),title:i.attr("data-title"),type:i.attr("data-type"),w:l.width(),h:l.height()},o()})}function o(){f.fadeIn(i.speed),s.fadeIn(i.speed),"video"==x.type?(c.hide(),l.css({width:x.w,height:x.h}).show(),m={left:(f.width()-l.outerWidth())/2,top:(f.height()-l.outerHeight())/2,width:l.outerWidth(),height:l.outerHeight()},s.animate({left:m.left,top:m.top,width:m.width,height:m.height},i.speed,function(){l.attr("src",x.href)})):(c.attr("src",x.href).css("visibility","hidden"),v=setInterval(n,500)),a()}function n(){c[0].complete&&(m={left:(f.width()-c.outerWidth())/2,top:(f.height()-c.outerHeight())/2,width:c.outerWidth(),height:c.outerHeight()},s.animate({left:m.left,top:m.top,width:m.width,height:m.height},i.speed,function(){c.css("visibility","visible").hide().fadeIn(i.speed)}),l.attr("src","").hide(),clearInterval(v))}function a(){$page.text(H+1+" of "+b),$title.text(x.title),r()}function r(){y?(0==H?u.stop(!0,!0).fadeOut(i.speed):u.stop(!0,!0).fadeIn(i.sepeed),H==b-1?p.stop(!0,!0).fadeOut(i.speed):p.stop(!0,!0).fadeIn(i.speed)):(u.stop(!0,!0).fadeOut(i.speed),p.stop(!0,!0).fadeOut(i.speed))}var f,s,c,l,p,u,g,v,w=t(this),_=w.find("a"),m={},y=!1,x={},b=_.length,H=0,W=0;e()})}}(jQuery); 799 800 // .lightBox ë´ a 를 기ì¤ì¼ë¡ ìì±í©ëë¤ 801 $('.d_lightBox').d_lightBox({ 802 speed:300, //ìë(1000=1ì´) 803 opacity:0.8 //0.1~1 804 }); 805 806 $('.d_lightBox_lookbook').d_lightBox({ 807 speed:300, //ìë(1000=1ì´) 808 opacity:0.8 //0.1~1 809 }); 810 811 812 813 814 815// jquery.DB_popupWin.js 816!function(e){e.fn.DB_popupWin=function(o){var t={key:"",popupWin:"",moveSpeed:400,open:1,dir:"x",lightBox:null,cookieDay:1,cookieName:"e17_popup"};return e.extend(t,o),this.each(function(){function o(){n(),i(),s(),r.resize(function(){n()})}function n(){I=(x.width()-m)/2,i()}function i(){d=1==t.open&&null==e.cookie(t.cookieName)?1:0,1==t.open&&null==e.cookie(t.cookieName)?("x"==t.dir?u.css({left:I}):"y"==t.dir?u.css({left:I,top:S}):u.css(),u.fadeIn(),v.show()):"x"==t.dir?(1==d?u.css("left",I):u.css("left",-m+k),u.fadeIn()):"y"==t.dir?(u.css("left",I),1==d?u.css("top",S):u.css("top",-l+k),u.fadeIn()):u.css("left",I)}function p(){e.cookie(t.cookieName,"hide",{path:"/",expires:t.cookieDay})}function s(){a.bind("click",function(){"x"==t.dir?0==d?(u.stop().animate({left:I},t.moveSpeed,"easeInOutExpo"),c(1)):(u.stop().animate({left:-m+k},t.moveSpeed,"easeInOutExpo"),c(0)):"y"==t.dir?0==d?(u.stop().animate({top:S},t.moveSpeed,"easeInOutExpo"),c(1)):(u.stop().animate({top:-l+k},t.moveSpeed,"easeInOutExpo"),c(0)):0==d?(u.stop().fadeIn(t.moveSpeed),c(1)):(u.stop().fadeOut(t.moveSpeed),c(0)),d=!d,p()}),f.bind("click",function(){"x"==t.dir?u.stop().animate({left:-m+k},t.moveSpeed,"easeInOutExpo"):"y"==t.dir?u.stop().animate({top:-l+k},t.moveSpeed,"easeInOutExpo"):u.stop().fadeOut(t.moveSpeed),c(0),d=0,p()}),v.bind("click",function(){"x"==t.dir?u.stop().animate({left:-m+k},t.moveSpeed,"easeInOutExpo"):"y"==t.dir?u.stop().animate({top:-l+k},t.moveSpeed,"easeInOutExpo"):u.stop().fadeOut(t.moveSpeed),c(0),d=0,p()})}function c(e){e?v.fadeIn():v.fadeOut()}var d,a=e(this),u=t.popupWin,f=u.find(".DB_close"),m=u.css("width").slice(0,-2),l=u.css("height").slice(0,-2),r=e(window),x=e(document),v=t.lightBox,k=-100,I=0,S=u.css("top");e("body");o()})}}(jQuery); 817$(document).ready(function(){ 818 819 // ê²ìì°½ 820 $('#JS_searchBtn').DB_popupWin({ 821 popupWin:$('#JS_searchBox'), //íì 822 lightBox:$('#d_lightBox'), //ë¼ì´í¸ë°ì¤ 823 moveSpeed:500, 824 dir:'fade', 825 open:0, 826 cookieName:'e17_popup3' //ì¤íì 무 827 }); 828 829}); 830 831 832 833 834 835// jquery.DB_brandList.js - ë¸ëë 836!(function(d){d.fn.DB_brandList=function(c){d.extend({},c);return this.each(function(){var g=d(this),e=g.find(".DB_btn li"),c=e.length,f=g.find(".DB_list").find("li"),h=f.length;(function(){for(var a=0;a<c;a++){var b=e.eq(a);b.data("data-key",b.find("a").text())}for(a=0;a<h;a++)b=f.eq(a),b.data("data-key",b.find("a").attr("data-key"))})();(function(){e.bind("click",function(){e.find("a").removeClass("DB_select");d(this).find("a").addClass("DB_select");var a=d(this).data("data-key");if("ALL"==a)f.show(); 837else for(var b=0;b<h;b++){var c=f.eq(b);a==c.data("data-key")?c.show():c.hide()}})})()})}})(jQuery); 838 839 $('#brand_list').DB_brandList({ 840 }); 841 842 $('#brand_list.v2').DB_brandList({ 843 }); 844 845 $('#brand_list2').DB_brandList({ 846 }); 847 848 849 850 851 852// jquery.DB_accoSlideAuto.js - FAQ 853!(function(a){a.fn.DB_accoSlideAuto=function(c){var d={moveSpeed:300,fixed:1,autoRollingTime:1E4};a.extend(d,c);return this.each(function(){function e(){for(var a=0;a<h;a++){var c=f.eq(a),e=c.find(".DB_detail");b==a?(c.addClass("DB_select"),e.stop(!0,!0).slideDown(d.moveSpeed)):(c.removeClass("DB_select"),e.stop(!0,!0).slideUp(d.moveSpeed))}}function c(){b=++b%h;e()}function k(){0<d.autoRollingTime&&(l=setInterval(c,d.autoRollingTime))}var g=a(this),f=g.find("li"),h=f.length,b=d.fixed-1,m=b,l;(function(){g.bind("mouseenter", 854function(){clearInterval(l)});g.bind("mouseleave",function(){k()});f.bind("click",function(){b=a(this).index();m==b&&(b=null);e();m=b})})();k();e()})}})(jQuery); 855 856 $('.DB_banner18_1').DB_accoSlideAuto({ 857 fixed:0, //ì²ìì´ë¦¬ë ë©ë´ë²í¸(0ì´ë©´ ì´ë¦¬ì§ ìì) 858 moveSpeed:200, //ì´ëì¤í¼ë 859 autoRollingTime:99999999 //ìë롤ë§(1000=1ì´) 860 }); 861 862 863 864// jquery.DB_restOpacity.js 865!(function(a){a.fn.DB_restOpacity=function(e){var b={opacity:.5,speed:300};a.extend(b,e);return this.each(function(){function g(){for(var a=0;a<e;a++){var f=c.eq(a);null==d?f.stop().animate({opacity:1},b.speed):d==a?f.stop().animate({opacity:1},b.speed):f.stop().animate({opacity:b.opacity},b.speed)}}a(this);var c=a(this).find(".DB_opacity"),e=c.length,d;(function(){c.bind("mouseenter",function(){d=a(this).index();g()});c.bind("mouseleave",function(){d=null;g()})})()})}})(jQuery); 866 867 //í¬ëª ë 868 $('.DB_navi30_quick_icons').DB_restOpacity({ 869 opacity:0.4, //í¬ëª ë ê°(0~1) 870 speed:200 //ìë(ë°ë¦¬ì´) 871 }); 872 873 $('.DB_banner4_rollup').DB_restOpacity({ 874 opacity:0.4, //í¬ëª ë ê°(0~1) 875 speed:200 //ìë(ë°ë¦¬ì´) 876 }); 877 878 879 880 881// jquery.DB_quickBanner.min.js 882!(function(a){a.fn.DB_quickBanner=function(d){var b={scrollTop:!1,moveSpeed:500,webStandard:!0};a.extend(b,d);return this.each(function(){var d=a(this),g=a(window),c=0,e=a(this).position().top,f=0;(function(){g.scroll(function(){c=b.webStandard?a(document).scrollTop():document.body.scrollTop;f=b.scrollTop?c>e?c:e:c+e;d.stop().animate({top:f},b.moveSpeed)})})()})}})(jQuery); 883 884 $('#DB_etc3_left1').DB_quickBanner({ 885 scrollTop:true, //ì¤í¬ë¡¤ì´í ìë¨ì ë
885¶ì´ê¸°(ë¶ëª¨ê¸°ì¤) 886 moveSpeed:300 887 }); 888 889 $('#DB_etc3_right1').DB_quickBanner({ 890 scrollTop:true, //ì¤í¬ë¡¤ì´í ìë¨ì ë¶ì´ê¸°(ë¶ëª¨ê¸°ì¤) 891 moveSpeed:300 892 }); 893 894 895 896// jquery.DB_scrollMenu.js 897!function(n){n.fn.DB_scrollMenu=function(i){var o={speed:500,viewHeight:100,easing:"easeInOutExpo"};return n.extend(o,i),this.each(function(){function i(){f=s.scrollTop(),f>=r&&0==a&&(e.stop(!0,!0).fadeIn(),a=1),r>f&&1==a&&(e.stop(!0,!0).fadeOut(),a=0)}var e=n(this),t=e.find(".up"),c=e.find(".down"),l=e.find(".more"),s=(e.find(".list"),n(window)),d=n(document),f=s.scrollTop(),u=o.speed,a=0,r=o.viewHeight,h=o.easing;s.scroll(function(){i()}),i(),t.bind("click",function(){n("html,body").animate({scrollTop:0},u+f/10,h)}),c.bind("click",function(){var i=s.height(),o=d.height();n("html,body").animate({scrollTop:o-i},u+(o-i-f)/10,h)}),l.bind("click",function(){e.toggleClass("on")})})}}(jQuery); 898 899 $('.upNdown').DB_scrollMenu({ 900 speed:500, 901 viewHeight:0 902 }); 903 904 905// í ì¸ì¨ ìì´ì½ 906function calculate_discount_rate() { 907 $('.discount_rate').each(function() { 908 var el = $(this); 909 910 var price = el.attr('data-price'); el.removeAttr('data-price'); 911 var sale = el.attr('data-sale'); el.removeAttr('data-sale'); 912 913 price = parseInt(price.replace(/,/g, '')); 914 sale = parseInt(sale.replace(/,/g, '')); 915 916 var rate = 0; 917 if (!isNaN(price) && !isNaN(sale) && 0 < price) { 918 rate = Math.round((price - sale) / price * 100); 919 920 } 921 el.html(rate+'<span>%</span>'); 922 923 rate = Math.ceil(rate / 10) * 10; 924 925 el.addClass('rate' + rate); 926 if(rate>0){ 927 el.show(); 928 } 929 }); 930}; 931 932$(document).ready(function() { 933 calculate_discount_rate(); 934}); 935 936 937 938 939 940/* ìíë¹êµ ì²´í¬ë°ì¤ë¥¼ ë¶ë¥íì´ì§ììë§ ë³´ì´ê² */ 941if(location.href.indexOf("list.html")!=-1){ 942 $('.chk').show(); 943} 944 945 946 947 948 949/* ì¬ë¼ì´ë ìµì»¤ */ 950$(function() { 951$.fn.tabScroll = function(){ 952 $(this).click(function(e){ 953 e.preventDefault(); 954 $('html,body').animate({scrollTop:$(this.hash).offset().top-110}, 1000, "easeInOutExpo"); 955 }); 956} 957}); 958 959$(document).ready(function(){ 960 $(".slide_anchor > ul > li > a").tabScroll(); 961}); 962 963 964!(function(){ 965 var v={}; 966 var a={}; 967 var p={}; 968 969 970 971/***************************************************************************************************************************************************** 972 973 ### ì¼í몰 기본ì ë³´ ì¤ì ### 974 975 ? ìì ì ë°ëì ë°±ì ëë ì¤í¨ ë³µì¬ë¥¼ í´ëì기 ë°ëëë¤. 976 ? ìëì ë´ì©ë§ ìì íì기 ë°ëëë¤. 977 978*****************************************************************************************************************************************************/ 979 980 981 // ì´ììê° 982 v.time1 = "ì¤ì 09:00 ~ ì¤í 06:00"; //íì¼ 983 v.time2 = "ì¤í 12:00 ~ ì¤í 01:00"; //ì ì¬ 984 v.time3 = "í / ì¼ / ê³µí´ì¼ì í´ë¬´"; //í´ë¬´ 985 986 987 988 // ìíì ë³´ ( ì¬ì©ìíì¤ ê²½ì° 29ë²ì§¸ì¤ì²ë¼ ì²ë¦¬í´ì£¼ì¸ì ) 989 v.bank11 = "기ì ìí"; v.bank12 = "041-065144-04-017"; 990 v.bank21 = "ì íìí"; v.bank22 = "100-023-964169"; 991 v.bank41 = ""; v.bank42 = ""; 992 v.bankName = "(주)íêµì¹¨êµ¬ìì§"; // 993 994 995 996 // ë°°ì¡ì¡°í 997 v.tracking1 = "íì§íë°° (TEL:1588-0011)"; 998 a.tracking2 = "http://www.hanjin.co.kr/Delivery_html/inquiry/personal_inquiry.jsp"; 999 v.tracking3 = "ë°°ì¡ì ë³´ë í´ë¹ íë°°ì¬ë¥¼ íµí´ ì¡°íê° ê°ë¥íìëë¤."; 1000 1001 1002 1003 // ë°íë°°ì¡ì§ 1004 v.returnAdd1 = "ìì¸ì ìí구 ìì´ë 56-1ë²ì§ ìì´ë¹ë© 4층"; 1005 v.returnAdd2 = "ë°íë°êµíì (주)íêµì¹¨êµ¬ìì§ìì ì§íí´ë립ëë¤."; 1006 1007 1008 1009 // ìì¤í¬ë¡ 1010 v.escrow1 = "KG ìì¤í¬ë¡ ì´ëíì´"; 1011 p.escrow2 = "https://www.inicis.com/"; //í´ë¹ ì¹´ëì¬ìì ì ê³µíë ë§í¬ë¥¼ ë£ì´ì£¼ì¸ì. 1012 1013 1014 1015 // 멤ë²ì½ê°ì´ë 1016 v.member1 = "70/150/300ë§ì ì´ìì ì ì©"; 1017 v.member2 = "10ë§ì ì´ì 구매ì 5~10%í ì¸"; 1018 1019 1020 1021 // ì¹´ëì´ë²¤í¸ 1022 v.card1 = "5ë§ìì´ì ê²°ì ì 2 ~ 3ê°ì 무ì´ìí ë¶"; 1023 v.card2 = "ë¶ë¬¸ 무ì´ìí ë¶, ì¬ì ARSí ë¶ ë±"; 1024 1025 1026 1027 // ë¤ì´ë²í¡í¡ 1028 // https://partner.talk.naver.com/ ìì ê°ì í´ì£¼ìê³ , ê°ì í ê³ì ê´ë¦¬ì ë¤ì´ê°ë³´ìë©´ [ talk.naver.com/ì½ë ] íì¸ì´ ê°ë¥íìëë¤. 1029 // ìëì http://... ë¼ê³ 기ì¬ë ê³³ì ì½ë를 êµì²´í´ì£¼ìë©´ ëê² ìµëë¤. */ 1030 p.naverTalk = "http://talk.naver.com/WC4O1V"; 1031 1032 1033 1034 // ìë¡ì°ìì´ë 1035 // https://yellowid.kakao.com/ ìì ê°ì í´ì£¼ìê³ , ê°ì íì [ @ìµìì´ë ] 를 ìëì 2ê³³ì @ëìì¸ì¹êµ¿ -> @ê³ ê°ëìì´ë ë¡ êµì²´í´ì£¼ìë©´ ëê² ìµëë¤. */ 1036 v.YellowID = "@ê³ ê°ëìì´ë"; 1037 p.YellowID = "http://plus.kakao.com/home/@ê³ ê°ëìì´ë"; 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 /*****************************************************************************************************************************************************/ 1067 1068 //ìì ê¸ì§ 1069 function DB_winOpen(_url,_win,_width,_height){ 1070 window.open(_url,_win,'width='+_width+',height='+_height+',scrollbars=auto'); 1071 }; 1072 for(key in v){$('.v_'+key).text(eval('v.'+key));}; 1073 for(key in a){$('.a_'+key).attr('href',eval('a.'+key));}; 1074 for(key in p){ 1075 $('.p_'+key).attr('data-popup',$('.p_'+key).attr('data-popup').replace('link',eval('p.'+key))); 1076 $('.p_'+key).bind('click',function(){ 1077 var attr=$(this).attr('data-popup').split(','); 1078 DB_winOpen(attr[0],attr[1],attr[2],attr[3]); 1079 }); 1080 }; 1081})(); 1082$(document).ready(function(){ 1083 if (typeof(EC_SHOP_MULTISHOP_SHIPPING) != "undefined") { 1084 var sShippingCountryCode4Cookie = 'shippingCountryCode'; 1085 var bShippingCountryProc = false;
1086 1087 // ë°°ì¡êµê° ì í ì¤ì ì´ ì¬ì©ìí¨ì´ë©´ ì¨ê¹ 1088 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === false) { 1089 $('.xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist').hide(); 1090 $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption .xans-layout-multishoplistmultioptioncountry').hide(); 1091 } else { 1092 $('.thumb .xans-layout-multishoplistitem').hide(); 1093 var aShippingCountryCode = document.cookie.match('(^|;) ?'+sShippingCountryCode4Cookie+'=([^;]*)(;|$)'); 1094 if (typeof(aShippingCountryCode) != 'undefined' && aShippingCountryCode != null && aShippingCountryCode.length > 2) { 1095 var sShippingCountryValue = aShippingCountryCode[2]; 1096 } 1097 1098 // query stringì¼ë¡ ëì´ ì¨ ë°°ì¡êµê° ê°ì´ ìë¤ë©´, ê·¸ ê°ì ì ì©í¨ 1099 var aHrefCountryValue = decodeURIComponent(location.href).split("/?country="); 1100 1101 if (aHrefCountryValue.length == 2) { 1102 var sShippingCountryValue = aHrefCountryValue[1]; 1103 } 1104 1105 // ë©ì¸ íì´ì§ìì êµê°ì íì ìí ê²½ì°, ê·¸ ì¸ì íì´ì§ìì ì í ë ê°ì´ ì ëì¤ë íì ì²ë¦¬ 1106 if (location.href.split("/").length != 4 && $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val()) { 1107 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join("")); 1108 1109 if ($("#f_country").length > 0 && location.href.indexOf("orderform.html") > -1) { 1110 $("#f_country").val($(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val()); 1111 } 1112 } 1113 if (typeof(sShippingCountryValue) != "undefined" && sShippingCountryValue != "" && sShippingCountryValue != null) { 1114 sShippingCountryValue = sShippingCountryValue.split("#")[0]; 1115 var bShippingCountryProc = true; 1116 1117 $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(sShippingCountryValue); 1118 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join("")); 1119 var expires = new Date(); 1120 expires.setTime(expires.getTime() + (30 * 24 * 60 * 60 * 1000)); // 30ì¼ê° ì¿ í¤ ì ì§ 1121 document.cookie = sShippingCountryCode4Cookie+'=' + $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val() +';path=/'+ ';expires=' + expires.toUTCString(); 1122 if ($("#f_country").length > 0 && location.href.indexOf("orderform.html") > -1) { 1123 $("#f_country").val(sShippingCountryValue).change();; 1124 } 1125 } 1126 } 1127 // ì¸ì´ì í ì¤ì ì´ ì¬ì©ìí¨ì´ë©´ ì¨ê¹ 1128 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingLanguageSelection === false) { 1129 $('.xans-layout-multishopshipping .xans-layout-multishopshippinglanguagelist').hide(); 1130 $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption .xans-layout-multishoplistmultioptionlanguage').hide(); 1131 } else { 1132 $('.thumb .xans-layout-multishoplistitem').hide(); 1133 } 1134 1135 // ë°°ì¡êµê° ë° ì¸ì´ ì¤ì ì´ ë ë¤ ì¬ì©ìí¨ì´ë©´ ì¨ê¹ 1136 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShipping === false) { 1137 $(".xans-layout-multishopshipping").hide(); 1138 $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption').hide(); 1139 } else if (bShippingCountryProc === false && location.href.split("/").length == 4) { // ë°°ì¡êµê° ê°ì ì²ë¦¬í ì ì´ ìê³ , ë©ì¸íë©´ì¼ ëë§ ì í ë ì´ì´ë¥¼ ëì 1140 var sShippingCountryValue = $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(); 1141 $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(sShippingCountryValue); 1142 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join("")); 1143 // ë°°ì¡êµê° ì íì ì¬ì©í´ì¼ ë ì´ì´ë¥¼ ë³´ì´ê² í¨ 1144 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === true) { 1145 $(".xans-layout-multishopshipping").show(); 1146 } 1147 } 1148 1149 $(".xans-layout-multishopshipping .close").bind("click", function() { 1150 $(".xans-layout-multishopshipping").hide(); 1151 }); 1152 1153 $(".xans-layout-multishopshipping .ec-base-button a").bind("click", function() { 1154 var expires = new Date(); 1155 expires.setTime(expires.getTime() + (30 * 24 * 60 * 60 * 1000)); // 30ì¼ê° ì¿ í¤ ì ì§ 1156 document.cookie = sShippingCountryCode4Cookie+'=' + $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val() +';path=/'+ ';expires=' + expires.toUTCString(); 1157 1158 // ëë©ì¸ 문ì ë¡ ì¿ í¤ë¡ ë°°ì¡êµê° ì¤ì ì´ ì ëë ê²½ì°ë¥¼ ìí´ query stringì¼ë¡ ë°°ì¡êµê° ê°
1158ì ëê¹ 1159 var sQuerySting = (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === false) ? "" : "/?country="+encodeURIComponent($(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val()); 1160 1161 location.href = 'http://'+$(".xans-layout-multishopshipping .xans-layout-multishopshippinglanguagelist").val()+sQuerySting; 1162 }); 1163 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a").bind("click", function() { 1164 $(".xans-layout-multishopshipping").show(); 1165 }); 1166 } 1167}); 1168/** 1169 * ìì§ì´ë ë°°ë Jquery Plug-in 1170 * @author cafe24 1171 */ 1172 1173(function($){ 1174 1175 $.fn.floatBanner = function(options) { 1176 options = $.extend({}, $.fn.floatBanner.defaults , options); 1177 1178 return this.each(function() { 1179 var aPosition = $(this).position(); 1180 var jbOffset = $(this).offset(); 1181 var node = this; 1182 1183 $(window).scroll(function() { 1184 var _top = $(document).scrollTop(); 1185 _top = (aPosition.top < _top) ? _top : aPosition.top; 1186 1187 setTimeout(function () { 1188 var newinit = $(document).scrollTop(); 1189 1190 if ( newinit > jbOffset.top ) { 1191 _top -= jbOffset.top; 1192 var container_height = $("#wrap").height(); 1193 var quick_height = $(node).height(); 1194 var cul = container_height - quick_height; 1195 if(_top > cul){ 1196 _top = cul; 1197 } 1198 }else { 1199 _top = 0; 1200 } 1201 1202 $(node).stop().animate({top: _top}, options.animate); 1203 }, options.delay); 1204 }); 1205 }); 1206 }; 1207 1208 $.fn.floatBanner.defaults = { 1209 'animate' : 500, 1210 'delay' : 500 1211 }; 1212 1213})(jQuery); 1214 1215/** 1216 * 문ì 구ëí ìì 1217 */ 1218$(document).ready(function(){ 1219 $('#banner:visible, #quick:visible').floatBanner(); 1220 1221 //placeholder 1222 $(".ePlaceholder input, .ePlaceholder textarea").each(function(i){ 1223 var placeholderName = $(this).parents().attr('title'); 1224 $(this).attr("placeholder", placeholderName); 1225 }); 1226 /* placeholder ie8, ie9 */ 1227 $.fn.extend({ 1228 placeholder : function() { 1229 //IE 8 ë²ì ìë hasPlaceholderSupport() ê°ì´ false를 ë¦¬í´ 1230 if (hasPlaceholderSupport() === true) { 1231 return this; 1232 } 1233 //hasPlaceholderSupport() ê°ì´ false ì¼ ê²½ì° ìë ì½ë를 ì¤í 1234 return this.each(function(){ 1235 var findThis = $(this); 1236 var sPlaceholder = findThis.attr('placeholder'); 1237 if ( ! sPlaceholder) { 1238 return; 1239 } 1240 findThis.wrap('<label class="ePlaceholder" />'); 1241 var sDisplayPlaceHolder = $(this).val() ? ' style="display:none;"' : ''; 1242 findThis.before('<span' + sDisplayPlaceHolder + '>' + sPlaceholder + '</span>'); 1243 this.onpropertychange = function(e){ 1244 e = event || e; 1245 if (e.propertyName == 'value') { 1246 $(this).trigger('focusout'); 1247 } 1248 }; 1249 //ê³µíµ class 1250 var agent = navigator.userAgent.toLowerCase(); 1251 if (agent.indexOf("msie") != -1) { 1252 $(".ePlaceholder").css({"position":"relative"}); 1253 $(".ePlaceholder span").css({"position":"absolute", "padding":"0 4px", "color":"#878787"}); 1254 $(".ePlaceholder label").css({"padding":"0"}); 1255 } 1256 }); 1257 } 1258 }); 1259 1260 $(':input[placeholder]').placeholder(); //placeholder() í¨ì를 í¸ì¶ 1261 1262 //í´ë¦íë©´ placeholder ì¨ê¹ 1263 $('body').delegate('.ePlaceholder span', 'click', function(){ 1264 $(this).hide(); 1265 }); 1266 1267 //inputì°½ í¬ì»¤ì¤ ì¸ ì¼ë placeholder ì¨ê¹ 1268 $('body').delegate('.ePlaceholder :input', 'focusin', function(){ 1269 $(this).prev('span').hide(); 1270 }); 1271 1272 //inputì°½ í¬ì»¤ì¤ ìì ì¼ë value ê° true ì´ë©´ ì¨ê¹, false ì´ë©´ ë³´ì¬ì§ 1273 $('body').delegate('.ePlaceholder :input', 'focusout', function(){ 1274 if (this.value) { 1275 $(this).prev('span').hide(); 1276 } else { 1277 $(this).prev('span').show(); 1278 } 1279 }); 1280 1281 //inputì placeholderê° ì§ìì´ ëë©´ true를 ìëë©´ false를 리í´ê°ì¼ë¡ ëì ¸ì¤ 1282 function hasPlaceholderSupport() { 1283 if ('placeholder' in document.createElement('input')) { 1284 return true; 1285 } else { 1286 return false;
1287 } 1288 } 1289}); 1290 1291/** 1292 * ì¸ë¤ì¼ ì´ë¯¸ì§ ìë°ì¼ê²½ì° ê¸°ë³¸ê° ì¤ì 1293 */ 1294$(window).load(function() { 1295 $("img.thumb,img.ThumbImage,img.BigImage").each(function($i,$item){ 1296 var $img = new Image(); 1297 $img.onerror = function () { 1298 $item.src="//img.echosting.cafe24.com/thumb/img_product_big.gif"; 1299 } 1300 $img.src = this.src; 1301 }); 1302}); 1303 1304//window popup script 1305function winPop(url) { 1306 window.open(url, "popup", "width=300,height=300,left=10,top=10,resizable=no,scrollbars=no"); 1307} 1308/** 1309 * document.location.href split 1310 * return array Param 1311 */ 1312function getQueryString(sKey) 1313{ 1314 var sQueryString = document.location.search.substring(1); 1315 var aParam = {}; 1316 1317 if (sQueryString) { 1318 var aFields = sQueryString.split("&"); 1319 var aField = []; 1320 for (var i=0; i<aFields.length; i++) { 1321 aField = aFields[i].split('='); 1322 aParam[aField[0]] = aField[1]; 1323 } 1324 } 1325 1326 aParam.page = aParam.page ? aParam.page : 1; 1327 return sKey ? aParam[sKey] : aParam; 1328}; 1329 1330$(document).ready(function(){ 1331 // tab 1332 $.eTab = function(ul){ 1333 $(ul).find('a').click(function(){ 1334 var _li = $(this).parent('li').addClass('selected').siblings().removeClass('selected'), 1335 _target = $(this).attr('href'), 1336 _siblings = '.' + $(_target).attr('class'); 1337 $(_target).show().siblings(_siblings).hide(); 1338 return false 1339 }); 1340 } 1341 if ( window.call_eTab ) { 1342 call_eTab(); 1343 }; 1344}); 1345(function($){ 1346$.fn.extend({ 1347 center: function() { 1348 this.each(function() { 1349 var 1350 $this = $(this), 1351 $w = $(window); 1352 $this.css({ 1353 position: "absolute", 1354 top: ~~(($w.height() - $this.outerHeight()) / 2) + $w.scrollTop() + "px", 1355 left: ~~(($w.width() - $this.outerWidth()) / 2) + $w.scrollLeft() + "px" 1356 }); 1357 }); 1358 return this; 1359 } 1360}); 1361$(function() { 1362 var $container = function(){/* 1363<div id="modalContainer"> 1364 <iframe id="modalContent" scroll="0" scrolling="no" frameBorder="0"></iframe> 1365</div>'); 1366*/}.toString().slice(14,-3); 1367 $('body') 1368 .append($('<div id="modalBackpanel"></div>')) 1369 .append($($container)); 1370 function closeModal () { 1371 $('#modalContainer').hide(); 1372 $('#modalBackpanel').hide(); 1373 } 1374 $('#modalBackpanel').click(closeModal); 1375 zoom = function ($piProductNo, $piCategoryNo, $piDisplayGroup) { 1376 var $url = '/product/image_zoom.html?product_no=' + $piProductNo + '&cate_no=' + $piCategoryNo + '&display_group=' + $piDisplayGroup; 1377 $('#modalContent').attr('src', $url); 1378 $('#modalContent').bind("load",function(){ 1379 $(".header .close",this.contentWindow.document.body).bind("click", closeModal); 1380 }); 1381 $('#modalBackpanel').css({width:$("body").width(),height:$("body").height(),opacity:.4}).show(); 1382 $('#modalContainer').center().show(); 1383 } 1384}); 1385})(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.