(function($){ function notice_getCookie( name ) { var nameOfCookie = name + "="; var x = 0; while ( x <= document.cookie.length ) { var y = (x+nameOfCookie.length); if ( document.cookie.substring( x, y ) == nameOfCookie ) { if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 ) endOfCookie = document.cookie.length; return unescape( document.cookie.substring( y, endOfCookie ) ); } x = document.cookie.indexOf( " ", x ) + 1; if ( x == 0 ) break; } return ""; } function notice_setCookie( name, value, expiredays ) { var todayDate = new Date(); todayDate.setDate( todayDate.getDate() + expiredays ); document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";" } $(function(){ // Load dialog on click $('#basic-modal .basic').click(function (e) { $('#basic-modal-content').modal(); return false; }); $(document).ready(function(){ //$('#basic-modal-content').modal(); $('.bxslider').bxSlider({ mode: 'horizontal', // 'horizontal', 'vertical', 'fade' speed: 1000, controls:false, useCSS: false, infiniteLoop: true, easing: 'easeInCirc', auto:true }); $('.slider2').bxSlider({ slideWidth: 200, minSlides: 5, maxSlides: 5, moveSlides: 1, slideMargin: 0, pager:false, auto:true }); /* if ( notice_getCookie( "pintbox208" ) != "done" ) { var filter = "win16|win32|win64|mac"; if( navigator.platform ){ if( filter.indexOf(navigator.platform.toLowerCase())<0 ){ $('#basic-modal-content').modal({ containerCss:{ position:"absolute" } }); } else{ $("#basic-modal-content").modal({ onOpen: function (dialog) { dialog.overlay.fadeIn('slow', function () { dialog.data.hide(); dialog.container.fadeIn('slow', function () { dialog.data.slideDown('slow'); }); }); }}); } } } */ return false; }); $('.main_bg_s .banner01').hover(function(){ $(this).css("background-color","#6fbee2"); }, function(){ $(this).css("background-color",""); }); // Load dialog on click $('.dateclose').click(function (e) { var closing_day = 1; //1은 1일을 의미한다. notice_setCookie( "pintbox208", "done" , closing_day); // closing_day 열지 않는 동안을 숫자형식으로 쓴다. $.modal.close(); return false; }); $("img.off").hover( function() { $(this).stop().animate({"opacity": "0"}, "slow"); }, function() { $(this).stop().animate({"opacity": "1"}, "slow"); }); $('div.alpha_01').hover(function(){ $("img",this).animate({opacity: "0.5"}, 100); //$("img", this).attr('src', $("img", this).attr('src').replace('_off', '_on')); }, function(){ $("img", this).animate({opacity: "1.0"}, 100); //$("img", this).attr('src', $("img", this).attr('src').replace('_on', '_off')); }); $('li.bg_s_m').hover(function(){ $("img", this).attr('src', $("img", this).attr('src').replace('_off', '_on')); }, function(){ $("img", this).attr('src', $("img", this).attr('src').replace('_on', '_off')); }); $('.bottom_con').hover(function(){ $(this).css("background-color","#ffff00"); }, function(){ $(this).css("background-color","#f8d8dc"); }); $('.btn_notice').mouseover(function(){ $('.main_notice').show(); $('.main_qna').hide(); $(".btn_notice").css("color","#ff0000"); $(".btn_qna").css("color","#404040"); //$(".btn_notice img").attr('src', $(".btn_notice img").attr('src').replace('_off', '_on')); //$(".btn_qna img").attr('src', $(".btn_qna img").attr('src').replace('_on', '_off')); //$("#main_banner_1 .banner01").css("background","#f5f5f5"); }); $('.btn_qna').mouseover(function(){ $('.main_notice').hide(); $('.main_qna').show(); $(".btn_notice").css("color","#404040"); $(".btn_qna").css("color","#ff0000"); //$(".btn_qna img").attr('src', $(".btn_qna img").attr('src').replace('_off', '_on')); //$(".btn_notice img").attr('src', $(".btn_notice img").attr('src').replace('_on', '_off')); //$("#main_banner_1 .banner01").css("background","#effadc"); }); $('.board_output_gallery_img').hover(function(){ $("img",this).animate({opacity: "0.5"}, 100); }, function(){ $("img", this).animate({opacity: "1.0"}, 100); }); $('.main_banner_2 .banner03').hover(function(){ $(this).css("background-color","#585566"); }, function(){ $(this).css("background-color","#b1c4bb"); }); $('.main_banner_2 .banner04').hover(function(){ $(this).css("background-color","#585566"); }, function(){ $(this).css("background-color","#eba21a"); }); $('.main_banner_2 .banner05').hover(function(){ $(this).css("background-color","#585566"); }, function(){ $(this).css("background-color","#4bae97"); }); $('.main_banner_2 .banner06').hover(function(){ $(this).css("background-color","#585566"); }, function(){ $(this).css("background-color","#1ca8dd"); }); $('.main_banner_2 .banner08').hover(function(){ $(this).css("background-color","#585566"); }, function(){ $(this).css("background-color","#d0d0d0"); }); /* $('#main_banner_2 .banner01').hover(function(){ //$("img",this).animate({opacity: "0.5"}, 100); $("img", this).attr('src', $("img", this).attr('src').replace('_off', '_on')); }, function(){ //$("img", this).animate({opacity: "1.0"}, 100); $("img", this).attr('src', $("img", this).attr('src').replace('_on', '_off')); }); $('#main_banner_2 .banner02').hover(function(){ //$("img",this).animate({opacity: "0.5"}, 100); $("img", this).attr('src', $("img", this).attr('src').replace('_off', '_on')); }, function(){ //$("img", this).animate({opacity: "1.0"}, 100); $("img", this).attr('src', $("img", this).attr('src').replace('_on', '_off')); }); $('#main_banner_2 .banner03').hover(function(){ //$("img",this).animate({opacity: "0.5"}, 100); $("img", this).attr('src', $("img", this).attr('src').replace('_off', '_on')); }, function(){ //$("img", this).animate({opacity: "1.0"}, 100); $("img", this).attr('src', $("img", this).attr('src').replace('_on', '_off')); }); */ }); })(jQuery);