contact.jsp 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. <%@ page contentType="text/html;charset=UTF-8" language="java" %>
  2. <!DOCTYPE HTML>
  3. <html>
  4. <head>
  5. <title id="pageTitle">昊古</title>
  6. <meta name="renderer" content="webkit"/>
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
  8. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  9. <meta name="format-detection" content="telephone=no"/>
  10. <meta name="apple-mobile-web-app-capable" content="yes"/>
  11. <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
  12. <meta name="viewport"
  13. content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0 user-scalable=no"/>
  14. <meta id="description" name="Description" content="昊古"/>
  15. <meta id="key" name="Keywords" content="昊古"/>
  16. <link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/static/css/common.css"/>
  17. <script language="javascript" type="text/javascript"
  18. src="${pageContext.request.contextPath}/static/js/jquery.min.js"></script>
  19. <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=Yp9062LbFzGcPihwzzRzGqdB"></script>
  20. <script language="javascript" type="text/javascript"
  21. src="${pageContext.request.contextPath}/static/js/js.js"></script>
  22. <script>
  23. $(document).ready(function () {
  24. winhw();
  25. $(".map").height(winHeight - 130);
  26. })
  27. </script>
  28. </head>
  29. <body>
  30. <div class="header headerfox">
  31. <div class="headt">
  32. <div class="main">
  33. <div class="headlogo">
  34. <a class="lowes" href="${pageContext.request.contextPath}/index.html/1/3">
  35. <img class="helogo" src="images/logo2x.png" alt="">
  36. </a>
  37. <a class="lores" href="${pageContext.request.contextPath}/index.html/1/3">
  38. <img class="helogo" src="images/lores.png" alt="">
  39. </a>
  40. </div>
  41. <div class="munes">
  42. <a href="#0" class="cd-nav-trigger">Menu<span class="cd-icon"></span></a>
  43. </div>
  44. <div class="headnva">
  45. <ul>
  46. <li><a href="${pageContext.request.contextPath}/index.html/1/3">基金介绍</a></li>
  47. <li><a href="${pageContext.request.contextPath}/example.html">投资案例</a></li>
  48. <li><a href="${pageContext.request.contextPath}/news.html/1/10">新闻动态</a></li>
  49. <li><a href="${pageContext.request.contextPath}/contact.html">联系我们</a></li>
  50. </ul>
  51. </div>
  52. <div class="cl"></div>
  53. </div>
  54. </div>
  55. </div>
  56. <div class="contmap">
  57. <div class="map" id="dituContent">
  58. </div>
  59. <div class="macontex">
  60. <div class="mapctontab">
  61. <div class="maconttbc"><p class="mapctic"><i><img
  62. src="${pageContext.request.contextPath}/static/images/contico01.png" alt=""></i>地址</p>
  63. <p class="mapctix">${mycompany.address}</p></div>
  64. <div class="maconttbc"><p class="mapctic"><i><img
  65. src="${pageContext.request.contextPath}/static/images/contico02.png" alt=""></i>邮箱</p>
  66. <p class="mapctix">${mycompany.emil}</p></div>
  67. <div class="maconttbc"><p class="mapctic"><i><img
  68. src="${pageContext.request.contextPath}/static/images/contico03.png" alt=""></i>电话</p>
  69. <p class="mapctix">${mycompany.phone}</p></div>
  70. </div>
  71. </div>
  72. </div>
  73. <div class="foot">
  74. <div class="main">
  75. <div class="footcopy">Copyright &copy; 2017 昊古资本 沪ICP备14003493号-9 powered by jzdsh</div>
  76. <div class="cl"></div>
  77. </div>
  78. </div>
  79. <!-- 代码部分end -->
  80. <script type="text/javascript">
  81. //创建和初始化地图函数:
  82. function initMap() {
  83. createMap();//创建地图
  84. setMapEvent();//设置地图事件
  85. addMapControl();//向地图添加控件
  86. addMapOverlay();//向地图添加覆盖物
  87. }
  88. function createMap() {
  89. map = new BMap.Map("dituContent");
  90. map.centerAndZoom(new BMap.Point(121.515635, 31.243286), 15);
  91. }
  92. function setMapEvent() {
  93. map.enableScrollWheelZoom();
  94. map.enableKeyboard();
  95. map.enableDragging();
  96. map.enableDoubleClickZoom()
  97. }
  98. function addClickHandler(target, window) {
  99. target.addEventListener("click", function () {
  100. target.openInfoWindow(window);
  101. });
  102. }
  103. function addMapOverlay() {
  104. var markers = [
  105. {
  106. content: "中国上海市陆家嘴东路161号招商局大厦1206F",
  107. title: "上海昊古投资管理有限公司",
  108. imageOffset: {width: 0, height: -21},
  109. position: {lat: 31.243286, lng: 121.515635}
  110. }
  111. ];
  112. for (var index = 0; index < markers.length; index++) {
  113. var point = new BMap.Point(markers[index].position.lng, markers[index].position.lat);
  114. var marker = new BMap.Marker(point, {
  115. icon: new BMap.Icon("http://api.map.baidu.com/lbsapi/createmap/images/icon.png", new BMap.Size(20, 25), {
  116. imageOffset: new BMap.Size(markers[index].imageOffset.width, markers[index].imageOffset.height)
  117. })
  118. });
  119. var label = new BMap.Label(markers[index].title, {offset: new BMap.Size(25, 5)});
  120. var opts = {
  121. width: 200,
  122. title: markers[index].title,
  123. enableMessage: false
  124. };
  125. var infoWindow = new BMap.InfoWindow(markers[index].content, opts);
  126. marker.setLabel(label);
  127. addClickHandler(marker, infoWindow);
  128. map.addOverlay(marker);
  129. }
  130. ;
  131. }
  132. //向地图添加控件
  133. function addMapControl() {
  134. var scaleControl = new BMap.ScaleControl({anchor: BMAP_ANCHOR_BOTTOM_LEFT});
  135. scaleControl.setUnit(BMAP_UNIT_IMPERIAL);
  136. map.addControl(scaleControl);
  137. var navControl = new BMap.NavigationControl({anchor: BMAP_ANCHOR_TOP_LEFT, type: 1});
  138. map.addControl(navControl);
  139. var overviewControl = new BMap.OverviewMapControl({anchor: BMAP_ANCHOR_BOTTOM_RIGHT, isOpen: false});
  140. map.addControl(overviewControl);
  141. }
  142. var map;
  143. initMap();
  144. $(document).ready(function () {
  145. winhw();
  146. $(".map").height(winHeight - 130);
  147. var map;
  148. initMap();
  149. })
  150. $(window).load(function () {
  151. winhw();
  152. $(".map").height(winHeight - 130);
  153. var map;
  154. initMap();
  155. });
  156. $(window).resize(function () {
  157. winhw();
  158. $(".map").height(winHeight - 130);
  159. $(".header").addClass("headerfox");
  160. var map;
  161. initMap();
  162. });
  163. </script>
  164. </body>
  165. </html>