(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(); if ( notice_getCookie( "pintbox040" ) != "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; }); // Load dialog on click $('.dateclose').click(function (e) { var closing_day = 1; //1은 1일을 의미한다. notice_setCookie( "pintbox040", "done" , closing_day); // closing_day 열지 않는 동안을 숫자형식으로 쓴다. $.modal.close(); return false; }); $('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 .banner01').hover(function(){ $(this).css("background-color","#585566"); }, function(){ $(this).css("background-color","#e0c438"); }); $('.main_banner_2 .banner02').hover(function(){ $(this).css("background-color","#585566"); }, function(){ $(this).css("background-color","#dc6d3f"); }); $('.main_banner_2 .banner03').hover(function(){ $(this).css("background-color","#585566"); }, function(){ $(this).css("background-color","#3585b6"); }); $('.main_banner_1 .banner01').hover(function(){ $(this).css("background-color","#585566"); }, function(){ $(this).css("background-color","#80bf1d"); }); $('.main_banner_1 .banner02').hover(function(){ $(this).css("background-color","#585566"); }, function(){ $(this).css("background-color","#e0c438"); }); $('.main_banner_1 .banner03').hover(function(){ $(this).css("background-color","#585566"); }, function(){ $(this).css("background-color","#eff1ee"); }); $('.main_banner_4 .banner02').hover(function(){ $(this).css("background-color","#585566"); }, function(){ $(this).css("background-color","#1ca8dd"); }); /* $('#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);