(function($){ function main_text1() { $('.main_text img').animate({opacity: "1.0"}, 1500, "easeOutQuad", function(){ $('.main_text img').animate({opacity: "0.00"}, 1500, "easeOutQuad", function(){ $('.main_text2 img').animate({opacity: "1.0"}, 1500, "easeOutQuad", function(){ $('.main_text2 img').animate({opacity: "0.00"}, 1500, "easeOutQuad"); }); }); }); } $(document).ready(function() { // 사진 갤러리 크기조정 var img_width; img_width = $("#post_area img").width(); if(img_width > 700){ $("#post_area img").css("width","700px"); } }); $(function(){ setInterval(main_text1, 6000); $('.main_text img').animate({opacity: "1.0"}, 1500, "easeOutQuad", function(){ $('.main_text img').animate({opacity: "0.00"}, 1500, "easeOutQuad", function(){ $('.main_text2 img').animate({opacity: "1.0"}, 1500, "easeOutQuad", function(){ $('.main_text2 img').animate({opacity: "0.00"}, 1500, "easeOutQuad"); }); }); }); $('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.menu_sub').hover(function(){ $("img", this).attr('src', $("img", this).attr('src').replace('_off', '_on')); $(this).children("ul").slideDown({duration: 200, easing: "swing", complete: "callback"}).show(); }, function(){ $(this).children("ul").slideUp(200).hide(); $("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 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_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); }); $('.mapsel').on("click", function(){ var target_id = $(this).attr("data"); target_id = '#' + target_id; //alert(target_id); $('body, html').animate({ scrollTop: $(target_id).offset().top }, 1000); }); /* $('#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);