//전국 jQuery(document).ready(function() { /*$('#wmap area').on('mouseover', function() { var map = $(this).attr('src'); if(typeof $(this).attr('src') == 'undefined') map = ''; $('#map_over img').attr('src', '' + map); return false; });*/ $('#wmap area').on('click', function() { $(".submap").hide(); var map = $(this).attr('src'); if(typeof $(this).attr('src') == 'undefined') map = ''; $('#map_over img').attr('src', '' + map); return false; }); //$("#wmap area").click(function(event){ //}); /*$('#wmap area').on('mouseleave', function() { $("#map_over img").attr('src', "images/imgmap/map00.gif"); });*/ }); //서울 jQuery(document).ready(function() { $('#submap > area').on('mouseenter', function() { var map = $(this).attr('src'); if(typeof $(this).attr('src') == 'undefined') map = ''; $('#sub_map_over img').attr('src', '' + map); return false; }); }); //인천 jQuery(document).ready(function() { $('#inchon > area').on('mouseenter', function() { var map = $(this).attr('src'); if(typeof $(this).attr('src') == 'undefined') map = ''; $('#inchon_over img').attr('src', '' + map); return false; }); }); //세종 jQuery(document).ready(function() { $('#sejong > area').on('mouseenter', function() { var map = $(this).attr('src'); if(typeof $(this).attr('src') == 'undefined') map = ''; $('#sejong_over img').attr('src', '' + map); return false; }); }); //대전 jQuery(document).ready(function() { $('#dj > area').on('mouseenter', function() { var map = $(this).attr('src'); if(typeof $(this).attr('src') == 'undefined') map = ''; $('#dj_over img').attr('src', '' + map); return false; }); }); //광주 jQuery(document).ready(function() { $('#kj > area').on('mouseenter', function() { var map = $(this).attr('src'); if(typeof $(this).attr('src') == 'undefined') map = ''; $('#kj_over img').attr('src', '' + map); return false; }); }); //대구 jQuery(document).ready(function() { $('#dg> area').on('mouseenter', function() { var map = $(this).attr('src'); if(typeof $(this).attr('src') == 'undefined') map = ''; $('#dg_over img').attr('src', '' + map); return false; }); }); //울산 jQuery(document).ready(function() { $('#ws> area').on('mouseenter', function() { var map = $(this).attr('src'); if(typeof $(this).attr('src') == 'undefined') map = ''; $('#ws_over img').attr('src', '' + map); return false; }); }); //부산 jQuery(document).ready(function() { $('#bs> area').on('mouseenter', function() { var map = $(this).attr('src'); if(typeof $(this).attr('src') == 'undefined') map = ''; $('#bs_over img').attr('src', '' + map); return false; }); }); //제주 jQuery(document).ready(function() { $('#jeju> area').on('mouseenter', function() { var map = $(this).attr('src'); if(typeof $(this).attr('src') == 'undefined') map = ''; $('#jeju_over img').attr('src', '' + map); return false; }); }); //경기 jQuery(document).ready(function() { $('#kk> area').on('mouseenter', function() { var map = $(this).attr('src'); if(typeof $(this).attr('src') == 'undefined') map = ''; $('#kk_over img').attr('src', '' + map); return false; }); }); //강원 jQuery(document).ready(function() { $('#kw> area').on('mouseenter', function() { var map = $(this).attr('src'); if(typeof $(this).attr('src') == 'undefined') map = ''; $('#kw_over img').attr('src', '' + map); return false; }); }); //충청남도 jQuery(document).ready(function() { $('#chungnam> area').on('mouseenter', function() { var map = $(this).attr('src'); if(typeof $(this).attr('src') == 'undefined') map = ''; $('#chungnam_over img').attr('src', '' + map); return false; }); }); //충청북도 jQuery(document).ready(function() { $('#chungbuk> area').on('mouseenter', function() { var map = $(this).attr('src'); if(typeof $(this).attr('src') == 'undefined') map = ''; $('#chungbuk_over img').attr('src', '' + map); return false; }); }); //전라북도 jQuery(document).ready(function() { $('#jeonbuk> area').on('mouseenter', function() { var map = $(this).attr('src'); if(typeof $(this).attr('src') == 'undefined') map = ''; $('#jeonbuk_over img').attr('src', '' + map); return false; }); }); //전라남도 jQuery(document).ready(function() { $('#jeonnam> area').on('mouseenter', function() { var map = $(this).attr('src'); if(typeof $(this).attr('src') == 'undefined') map = ''; $('#jeonnam_over img').attr('src', '' + map); return false; }); }); //경상북도 jQuery(document).ready(function() { $('#gyeongbuk> area').on('mouseenter', function() { var map = $(this).attr('src'); if(typeof $(this).attr('src') == 'undefined') map = ''; $('#gyeongbuk_over img').attr('src', '' + map); return false; }); }); //경상남도 jQuery(document).ready(function() { $('#gyeongnam> area').on('mouseenter', function() { var map = $(this).attr('src'); if(typeof $(this).attr('src') == 'undefined') map = ''; $('#gyeongnam_over img').attr('src', '' + map); return false; }); }); $(document).ready(function(){ //시군구 맵 팝업 $(".submap").hide(); $(".seoul").click(function(){ $(".seoul_submap").show(); $("#footerBG3").show(); $(".default").addClass("seoul"); return false; });//서울 $(".inchon").click(function(){ $(".inchon_submap").show(); $("#footerBG3").show(); return false; });//인천 $(".sejong").click(function(){ $(".sejong_submap").show(); $("#footerBG3").show(); return false; });//세종 $(".dj").click(function(){ $(".dj_submap").show(); $("#footerBG3").show(); return false; });//대전 $(".kj").click(function(){ $(".kj_submap").show(); $("#footerBG3").show(); return false; });//광주 $(".dg").click(function(){ $(".dg_submap").show(); $("#footerBG3").show(); return false; });//대구 $(".ws").click(function(){ $(".ws_submap").show(); $("#footerBG3").show(); return false; });//울산 $(".bs").click(function(){ $(".bs_submap").show(); $("#footerBG3").show(); return false; });//부산 $(".jeju").click(function(){ $(".jeju_submap").show(); $("#footerBG3").show(); return false; });//제주 $(".kk").click(function(){ $(".kk_submap").show(); $("#footerBG3").show(); return false; });//경기 $(".kw").click(function(){ $(".kw_submap").show(); $("#footerBG3").show(); return false; });//강원 $(".chungnam").click(function(){ $(".chungnam_submap").show(); $("#footerBG3").show(); return false; });//충청남도 $(".chungbuk").click(function(){ $(".chungbuk_submap").show(); $("#footerBG3").show(); return false; });//충청북도 $(".jeonbuk").click(function(){ $(".jeonbuk_submap").show(); $("#footerBG3").show(); return false; });//전라북도 $(".jeonnam").click(function(){ $(".jeonnam_submap").show(); $("#footerBG3").show(); return false; });//전라남도 $(".gyeongbuk").click(function(){ $(".gyeongbuk_submap").show(); $("#footerBG3").show(); return false; });//경상북도 $(".gyeongnam").click(function(){ $(".gyeongnam_submap").show(); $("#footerBG3").show(); return false; });//경상남도 //팝업닫기 $(".btn-close").click(function(){ $(".submap").hide(); $("#footerBG3").hide(); return false; }); });