1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115
| <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"/> <title>创业指导平台</title> <link rel="stylesheet" href="http://localhost/dojo1.10/dijit/themes/claro/claro.css"> <style> @import "./widget/css/main.css"; @import "./widget/css/shortcut.css"; @import "./widget/css/signup.css"; @import "./widget/css/friends.css"; @import "./widget/css/urbanplan.css"; @import "./widget/css/sidebar.css"; </style> <script> var dojoConfig = (function(){ var base = location.href.split("/"); base.pop(); base = base.join("/"); return { async: true, isDebug: true, parseOnLoad:true, packages: [ { name: "widget", location: base + "/widget" } ] }; })(); </script> <script src="http://localhost/dojo1.10/dojo/dojo.js"></script> <script type="text/javascript" src="http://api.tianditu.com/js/maps.js"></script> <script> require([ "dojo/dom", "dojo/on", "dojo/dom-style", "dojo/fx", "widget/js/Shortcut", "widget/js/Signup", "widget/js/Friends", "widget/js/Sidebar", "dojo/domReady!" ], function(dom,on,DomStyle,fx,Shortcut,Signup,Friends, Sidebar ) { var mainMap; var zoom = 12; mainMap=new TMap("mapDiv"); mainMap.centerAndZoom(new TLngLat(120.1167564,36.0000991),zoom); mainMap.enableHandleMouseScroll(); mainMap.enableInertia(); var config = { type:"TMAP_NAVIGATION_CONTROL_LARGE", anchor:"TMAP_ANCHOR_TOP_RIGHT", offset:[1300,70], showZoomInfo:true }; var control=new TNavigationControl(config); mainMap.addControl(control); var friend=null on(dom.byId("friends"),"mousedown",function(){ if(friend==null){ friend=new Friends(); friend.setMap(mainMap); friend.placeAt("content"); }else{ friend.setMap(mainMap); } }) var signup=new Signup(); signup.setMap(mainMap); signup.placeAt("content"); var shortcut=new Shortcut(); shortcut.placeAt("content"); var sidebar=new Sidebar(); sidebar.setMap(mainMap); sidebar.placeAt("content"); });
</script> </head> <body class="claro"> <div id="content"> <div id="miantitle"> <div id="titleimg"> <img src="widget/image/main/cloud2.png"/> <img src="./widget/image/main/chuangye.png"/> <img src="widget/image/main/cloud.png"/> </div> <div class="mainmenu"> <ul id="nav"> <li id="friends"><a href="#">创业伙伴</a></li> <li><a href="#">联系我们</a></li> <li><a href="#">关于我们</a></li> <li><a href="#">购买我们</a></li> </ul> </div> </div> <div id="mapDiv"></div> </div> </body> </html>
|