jQuery中国地图省市高亮显示代码

jQuery中国地图省市高亮显示代码

jQuery中国地图省市高亮显示代码

jQuery基于map area属性制作的中国地图省市高亮显示代码,地图下方显示选中省份城市名称。

源码介绍

js代码

"text/javascript" src="js/jquery-migrate-1.2.1.min.js"
"text/javascript" src="js/jquery-maphilight.min.js"
        "text/javascript"> 
            $(document).ready(function() { 
                $.fn.maphilight.defaults = { 
                    fill: true, 
                    fillColor: 'ff8c19'
                    fillOpacity: 0.7
                    stroke: true, 
                    strokeColor: 'ff8b19'
                    strokeOpacity: 1
                    strokeWidth: 3
                    fade: true, 
                    alwaysOn: false, 
                    neverOn: false, 
                    groupBy: false 
                } 
 
                $("#map_image").maphilight(); 
 
                var btn = $(".mapBtn"); 
                var map = $(".mapPath"); 
 
                btn.click(function() { 
                    map.hide(); 
                    $(this).next().show(); 
                }); 
            }); 
        


分享到 :
简洁的jQuery弹窗插件dialog
上一篇 2018-05-03 12:50:16

发表评论

登录... 后才能评论