$(function() { // top navigation 1,2차 탑메뉴 $('#topNaviDiv > li > a').mouseover(function(){ $('#topNaviDiv > li > div').css({visibility:'hidden'}); $('#topNaviDiv > li > a > img').each(function(index, value){ $(this).attr('src',$(this).attr('src').replace('_on','_off')); }); $('img:first',this).attr('src',$('img:first',this).attr('src').replace('_off','_on')); $(this).next('.sub_menuDiv').css({visibility:'visible'}); }); $('#topNaviDiv > li > a').focus(function(){ $('#topNaviDiv > li > div').css({visibility:'hidden'}); $('#topNaviDiv > li > a > img').each(function(index, value){ $(this).attr('src',$(this).attr('src').replace('_on','_off')); }); $('img:first',this).attr('src',$('img:first',this).attr('src').replace('_off','_on')); $(this).next('.sub_menuDiv').css({visibility:'visible'}); }); //$('.sub_menuDiv').mouseleave(function(){ // $(this).css({visibility:'hidden'}); //}); // 공지글 텝 ( mouseover ) $('.main_notice > li > a').mouseover(function(){ $('.main_notice > li > a > img').each(function(index, value){ $(this).attr('src',$(this).attr('src').replace('_on','_off')); }); $('img:first',this).attr('src',$('img:first',this).attr('src').replace('_off','_on')); // 이전꺼 clear 하기 // 전체 more 탭 hidden $('.notice_01').each(function(index, value){ $(this).css({visibility:'hidden'}); }); // 전체 공지 탭 hidden $('.notice_more').each(function(index, value){ $(this).css({visibility:'hidden'}); }); // 현재공지탭 , 현재 more 탭 visible $($(this).next('.notice_01')).css({visibility:'visible'}); $($(this).next('.notice_01')).next('.notice_more').css({visibility:'visible'}); }); // 공지글 텝 ( onfocus ) $('.main_notice > li > a').focus(function(){ $('.main_notice > li > a > img').each(function(index, value){ $(this).attr('src',$(this).attr('src').replace('_on','_off')); }); $('img:first',this).attr('src',$('img:first',this).attr('src').replace('_off','_on')); // 이전꺼 clear 하기 // 전체 more 탭 hidden $('.notice_01').each(function(index, value){ $(this).css({visibility:'hidden'}); }); // 전체 공지 탭 hidden $('.notice_more').each(function(index, value){ $(this).css({visibility:'hidden'}); }); // 현재공지탭 , 현재 more 탭 visible $($(this).next('.notice_01')).css({visibility:'visible'}); $($(this).next('.notice_01')).next('.notice_more').css({visibility:'visible'}); }); $('.minwon_wrap > li > a').mouseover( function(){ $('.minwon_wrap > li > a > img').each(function(index, value){ $(this).attr('src',$(this).attr('src').replace('_on','_off')); }); $('img:first',this).attr('src',$('img:first',this).attr('src').replace('_off','_on')); // 이전꺼 clear 하기 $('.minwon_mnu').each(function(index, value){ $(this).css({visibility:'hidden'}); }); $($(this).next('.minwon_mnu')).css({visibility:'visible'}); }); $('.minwon_wrap > li > a').focus( function(){ $('.minwon_wrap > li > a > img').each(function(index, value){ $(this).attr('src',$(this).attr('src').replace('_on','_off')); }); $('img:first',this).attr('src',$('img:first',this).attr('src').replace('_off','_on')); // 이전꺼 clear 하기 $('.minwon_mnu').each(function(index, value){ $(this).css({visibility:'hidden'}); }); $($(this).next('.minwon_mnu')).css({visibility:'visible'}); }); //팝업존 포커스-팝업정지 /* $('.Pop_pause').mouseover(function() { $('#pzone_pic_listwrap').cycle('pause'); }); $('.Pop_pause').mouseout(function() { $('#pzone_pic_listwrap').cycle('resume'); }); $('.Pop_pause').focus(function() { $('#pzone_pic_listwrap').cycle('pause'); }); $('.Pop_pause').blur(function() { $('#pzone_pic_listwrap').cycle('resume'); }); */ $('.Pop_resume_bt').click(function() { $('#pzone_pic_listwrap').cycle('resume'); return false; }); $('.Pop_pause_bt').click(function() { $('#pzone_pic_listwrap').cycle('pause'); return false; }); //배너 포커스-팝업정지 /* $('.ban_area').mouseover(function() { $('#switch_banner').cycle('pause'); }); $('.ban_area').mouseout(function() { $('#switch_banner').cycle('resume'); }); $('.ban_area').focus(function() { $('#switch_banner').cycle('pause'); }); $('.ban_area').blur(function() { $('#switch_banner').cycle('resume'); }); */ var ad_stop = false; $('.ad_stop').click(function() { if( !ad_stop ){ ad_stop = true; $('.ad_stop > img').attr("src","/img/main/play_btn2.gif"); $('.ad_stop > img').attr("alt","재생"); $('#switch_banner').cycle('pause'); }else{ ad_stop = false; $('.ad_stop > img').attr("src","/img/main/stop_btn.gif"); $('.ad_stop > img').attr("alt","일시정지"); $('#switch_banner').cycle('resume'); } return false; }); // 청사안내도 버튼 on/off 용 $('.office_btn > li > a').click( function(){ $('.office_btn > li > a > img').each(function(index, value){ $(this).attr('src',$(this).attr('src').replace('_on','_off')); }); $('img:first',this).attr('src',$('img:first',this).attr('src').replace('_off','_on')); return false; }); // 독도홍보영상 On/Off $('.fla_video_list > li > a').click( function(){ $('.fla_video_list > li > a > img').each(function(index, value){ $(this).attr('src',$(this).attr('src').replace('_on','_off')); }); $('img:first',this).attr('src',$('img:first',this).attr('src').replace('_off','_on')); return false; }); }); $(document).ready(function() { // 민원서비스 > 민원서식받기 div display hidden $('.minwon_box').css("display","none"); //조직도 사진 레이어 hidden //$('.profile_wrap').css("visibility","hidden"); // 자매도시 $('.city_text').css("display","none"); });