在好例子网,分享、交流、成长!
您当前所在位置:首页CSS 开发实例Box Model → 全国地图显示(可按照市区单独显示)

全国地图显示(可按照市区单独显示)

Box Model

下载此实例
  • 开发语言:CSS
  • 实例大小:0.39M
  • 下载次数:27
  • 浏览次数:279
  • 发布时间:2019-10-18
  • 实例类别:Box Model
  • 发 布 人:2691754473
  • 文件格式:.rar
  • 所需积分:2
 相关标签: 显示 地图

实例介绍

【实例简介】

地图显示,jQuery可弹出下级城市地图插件

【实例截图】




from clipboard

【核心代码】



<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    
     <title>jQuery可弹出下级城市地图插件</title>
    
    
    <meta name="Keywords" content="jQuery可弹出下级城市地图插件" />
    
    
    <meta name="description" content="jQuery可弹出下级城市地图插件" />
    
    <link href="http://img.chinaz.com/max-templates/passport/styles/topbar.css" type="text/css" rel="Stylesheet" />
    <link href="style_kj.css" type="text/css" rel="stylesheet" />
    <link href="demo.css" type="text/css" rel="stylesheet" />
    <script type="text/javascript" src="jquery-1.2.pack.js"></script>
<script type="text/javascript">
var theme_list_open = false;
$(document).ready(function () {
    function fixHeight() {
        var headerHeight = $("#switcher").height();
        $("#iframe").attr("height"$(window).height()-84   "px");
    }
    $(window).resize(function () {
        fixHeight();
    }).resize();
    //响应式预览
    $('.icon-monitor').addClass('active');
    $(".icon-mobile-3").click(function () {
        $("#by").css("overflow-y""auto");
        $('#iframe-wrap').removeClass().addClass('mobile-width-3');
        $('.icon-tablet,.icon-mobile-1,.icon-monitor,.icon-mobile-2,.icon-mobile-3').removeClass('active');
        $(this).addClass('active');
        return false;
    });

    $(".icon-mobile-2").click(function () {
        $("#by").css("overflow-y""auto");
        $('#iframe-wrap').removeClass().addClass('mobile-width-2');
        $('.icon-tablet,.icon-mobile-1,.icon-monitor,.icon-mobile-2,.icon-mobile-3').removeClass('active');
        $(this).addClass('active');
        return false;
    });

    $(".icon-mobile-1").click(function () {
        $("#by").css("overflow-y""auto");
        $('#iframe-wrap').removeClass().addClass('mobile-width');
        $('.icon-tablet,.icon-mobile,.icon-monitor,.icon-mobile-2,.icon-mobile-3').removeClass('active');
        $(this).addClass('active');
        return false;
    });

    $(".icon-tablet").click(function () {
        $("#by").css("overflow-y""auto");
        $('#iframe-wrap').removeClass().addClass('tablet-width');
        $('.icon-tablet,.icon-mobile-1,.icon-monitor,.icon-mobile-2,.icon-mobile-3').removeClass('active');
        $(this).addClass('active');
        return false;
    });

    $(".icon-monitor").click(function () {
        $("#by").css("overflow-y""hidden");
        $('#iframe-wrap').removeClass().addClass('full-width');
        $('.icon-tablet,.icon-mobile-1,.icon-monitor,.icon-mobile-2,.icon-mobile-3').removeClass('active');
        $(this).addClass('active');
        return false;
    });
});
</script>
<script type="text/javascript">
function Responsive($a) {
    if ($a == true$("#Device").css("opacity""100");
    if ($a == false$("#Device").css("opacity""0");
    $('#iframe-wrap').removeClass().addClass('full-width');
    $('.icon-tablet,.icon-mobile-1,.icon-monitor,.icon-mobile-2,.icon-mobile-3').removeClass('active');
    $(this).addClass('active');
    return false;
};
</script>
</head>
<body id="by" style="overflow-y: hidden" >
<div id="switcher">
  <div class="center">
    <ul>
    <!--<li class="logoTop">在线预览!</li>-->
      <div id="Device">
        <li class="device-monitor"><a href="javascript:"><div class="icon-monitor"></div></a></li>
        <li class="device-mobile"><a href="javascript:"><div class="icon-tablet"> </div></a></li>
        <li class="device-mobile"><a href="javascript:"><div class="icon-mobile-1"> </div></a></li>
        <li class="device-mobile-2"><a href="javascript:"><div class="icon-mobile-2"> </div></a></li>
        <li class="device-mobile-3"><a href="javascript:"><div class="icon-mobile-3"> </div></a></li>
      </div>
      
      
    </ul>
    <div class="muen_top">
     <!--<a href="/" class="indexactive">首页</a>-->
     <!--<a href="/tupian/"  class="l11active" target="_blank">高清图片</a>-->
     <!--<a href="/moban/" class="l12active" target="_blank">模板</a>-->
     <!--<a href="/ppt/" class="l726active" target="_blank">ppt模板</a>-->
     <!--<a href="/tubiao/" class="l49active" target="_blank">图标</a>-->
     <!--<a href="/kuzhan/" class="l713active" target="_blank">酷站</a>-->
     <!--<a href="http://font.chinaz.com/" class="l13active" target="_blank">字体</a>-->
     <!--<a href="/psd/" class="l713active" target="_blank">PSD素材</a>-->
     <!--<a href="/shiliang/" class="l15active" target="_blank">矢量图</a>-->
     <!--<a href="/yinxiao/" class="l713active" target="_blank">音效</a>-->
     <!--<a href="/biaoqing/" class="l560active" target="_blank">表情</a>-->
     <!--<a href="http://desk.chinaz.com/" class="l713active" target="_blank">壁纸</a>-->
     <!--<a href="/donghua/" class="l653active" target="_blank">动画</a>-->
     <!--<a href="/jiaoben/" target="_blank">脚本</a>-->
     <!--<a href="/zhuanti/" target="_blank">专题</a>-->
    </div>
    <div class="tougao">
    <!--<a  href="http://sc.chinaz.com/tougao.html" target="_blank">我要投稿</a>-->
    </div>
  </div>
</div>
<div id="iframe-wrap">
         
            <iframe id="iframe" src="http://demo.sc.chinaz.net/Files/DownLoad/webjs1/201811/jiaoben6378" frameborder="0"   width="100%"> </iframe>
          

</div>
<div id="footer-notice" class="kj_bottom">
    <div style=" width:980px; margin:0 auto">
        <p class="left cut">
            <span>名称:</span>
            <a href="/jiaoben/181125168130.htm" title="点击下载" class="down" target="_blank">jQuery可弹出下级城市地图插件</a>
            <span>类型:</span>
            <a href="/jiaoben/"  class="colbule" title="脚本" target="_blank">脚本</a>
             
            <span>标签:</span><a href="/tag_jiaoben/jQuery.html" target="_blank">jQuery</a><a href="/tag_jiaoben/DiTuChaJian.html" target="_blank">地图插件</a><a href="/tag_jiaoben/ChengShiXuanZe.html" target="_blank">城市选择</a><a href="/tag_jiaoben/DianJiXuanZe.html" target="_blank">点击选择</a>
                        

        </p>
        <p class="left">
            <span>分享到:</span>
            <!--<a title='分享到新浪微博' href="javascript:void(0)" id="fxwb" class="sn">新浪</a>-->
            <a title='分享到腾讯微博' href='javascript:void(0)' onclick=posttoWb() class="tx">腾讯</a>
            <a title="分享到QQ空间" href="javascript:window.open('http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=' encodeURIComponent(document.location.href));void(0)" class="qq">QQ空间</a>
        </p>
        <div class="clear"></div>
    </div>
</div>

    <script type="text/javascript">

        var description = 'jQuery可弹出下级城市地图插件: jQuery可弹出下级城市地图插件是一款html5基于echarts.js地图插件制作中国地图点击选择城市弹出下级城市区块代码。';


        var sendT = {
            getHeader: function () {
                var g_title = description;
                var re = /<[^<>]*?font[^<>]*?>/gi;
                g_title = g_title.replace(re"");
                return g_title;
            },
            getFirstImgSrc: function () {
                var allPageTags = document.getElementsByTagName("div");
                for (var i = 0i < allPageTags.lengthi ) {
                    if (allPageTags[i].className == 'downtext') {
                        if (allPageTags[i].getElementsByTagName("img")[0] && allPageTags[i].getElementsByTagName("img")[0].width > 200) {
                            return allPageTags[i].getElementsByTagName("img")[0].src;
                        }
                        else {
                            return null;
                        }

                    }
                }
            },
            getContent: function () {
                var allPageTagss = document.getElementsByTagName("div");
                for (var i = 0i < allPageTagss.lengthi ) {
                    if (allPageTagss[i].className == 'downtext') {
                        return allPageTagss[i].innerHTML;
                    }
                }
            }
        }


        document.getElementById("fxwb").onclick = function () {
            (function (sderlptzc) {
                var f = 'http://service.weibo.com/share/share.php?appkey=872996044&'u = z || d.locationp = ['url='e(u), '&title='e(sendT.getHeader()), '&source='e(r), '&sourceUrl='e(l), '&content='c || 'gb2312''&pic='e(p || '')].join('');
                function a() {
                    if (!window.open([fp].join(''), 'mb', ['toolbar=0,status=0,resizable=1,width=440,height=430,left=', (s.width - 440) / 2',top=', (s.height - 430) / 2].join(''))) u.href = [fp].join('');
                };
                if (/Firefox/.test(navigator.userAgent)) setTimeout(a0); else a();
            })(screendocumentencodeURIComponent'CHINAZ''http://sc.chinaz.com/'sendT.getFirstImgSrc(), nullnullnull);
        }

        function posttoWb() {
            var _tt = description;
            var _t = encodeURI(_tt.replace(/\s $/''));
            var _url = encodeURI(window.location);
            var _appkey = encodeURI("258efff116d2466da9b7513cbae7de0b");
            var _site = encodeURI('sc.chinaz.com');
            var _pic = sendT.getFirstImgSrc();
            var _u = 'http://v.t.qq.com/share/share.php?title='   _t   '&url='   _url   '&appkey='   _appkey   '&site='   _site   '&pic='   _pic;
            window.open(_u'转播到腾讯微博''width=700, height=580, top=320, left=180, toolbar=no, menubar=no, scrollbars=no, location=yes, resizable=no, status=no');
        }

 
</script>
<script type="text/javascript" src="/js/softinfo.js.aspx?id=633714" defer="defer" charset="UTF-8"></script>
<div style="display:none">
<script src="http://s4.cnzz.com/stat.php?id=300636&web_id=300636" language="JavaScript"></script>
</div>
</body>
</html>



标签: 显示 地图

实例下载地址

全国地图显示(可按照市区单独显示)

不能下载?内容有错? 点击这里报错 + 投诉 + 提问

好例子网口号:伸出你的我的手 — 分享

网友评论

发表评论

(您的评论需要经过审核才能显示)

查看所有0条评论>>

小贴士

感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。

  • 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
  • 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
  • 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
  • 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。

关于好例子网

本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明

;
报警