-
Notifications
You must be signed in to change notification settings - Fork 0
/
contact.html
258 lines (245 loc) · 13.3 KB
/
contact.html
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>众佳智能</title>
<link href="css/css.css" rel="stylesheet" type="text/css" />
<!--引用百度地图API-->
<style type="text/css">
html,body{margin:0;padding:0;}
.iw_poi_title {color:#CC5522;font-size:14px;font-weight:bold;overflow:hidden;padding-right:13px;white-space:nowrap}
.iw_poi_content {font:12px arial,sans-serif;overflow:visible;padding-top:4px;white-space:-moz-pre-wrap;word-wrap:break-word}
</style>
<script type="text/javascript" src="http://api.map.baidu.com/api?key=&v=1.1&services=true"></script>
</head>
<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" background="images/in_02.jpg">
<tr>
<td height="99"><table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="328" height="99" align="center" background="images/in_04.jpg"><img src="images/logo1.png" width="125" height="60" /></td>
<td width="672" valign="middle"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="font_wr">
<tr>
<td height="35" align="right"><a href="#">设为首页</a> - <a href="#">加入收藏</a> </td>
</tr>
<tr>
<td height="50" align="right" class="font_15"><table width="95%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><strong><a href="index.html">网站首页</a></strong></td>
<td align="center"><img src="images/shux.jpg" width="2" height="16" /></td>
<td align="center"><strong><a href="about.html">关于我们</a></strong></td>
<td align="center"><img src="images/shux.jpg" width="2" height="16" /></td>
<td align="center"><strong><a href="new.html">新闻中心</a></strong></td>
<td align="center"><img src="images/shux.jpg" width="2" height="16" /></td>
<td align="center"><strong><a href="product.html">产品中心</a></strong></td>
<td align="center"><img src="images/shux.jpg" width="2" height="16" /></td>
<td align="center"><strong><a href="case.html">工程案例</a></strong></td>
<td align="center"><img src="images/shux.jpg" width="2" height="16" /></td>
<td align="center"><strong><a href="service.html">服务中心</a></strong></td>
<td align="center"><img src="images/shux.jpg" width="2" height="16" /></td>
<td align="center"><strong><a href="contact.html">联系我们</a></strong></td>
</tr>
</table> </td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" background="images/abanbj_03.jpg"><img src="images/contact_03.jpg" width="1000" height="180" /></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="24" background="images/in_12.jpg"> </td>
</tr>
</table>
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="280" valign="top"><table width="260" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="260" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="26%" height="30" align="left" class="font_14"><strong>产品中心</strong></td>
<td width="47%" align="left" class="font_999">Product</td>
<td width="27%" align="right"><a href="product.html">
<img src="images/in_19.jpg" width="37" height="11" />
</a></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="103" align="left"><img src="images/log4.jpg" width="76" height="76" /></td>
<td align="center"><img src="images/log4.jpg" width="76" height="76" /></td>
<td align="right"><img src="images/log4.jpg" width="76" height="76" /></td>
</tr>
</table></td>
</tr>
<tr>
<td valign="top"> </td>
</tr>
<tr>
<td valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="26%" align="left" class="font_14"><strong>新闻中心</strong></td>
<td width="47%" align="left" class="font_999">News</td>
<td width="27%" align="right"><a href="new.html">
<img src="images/in_19.jpg" width="37" height="11" />
</a></td>
</tr>
<tr>
<td height="110" colspan="3" align="left" ><table width="100%" border="0" align="center" cellpadding="3" cellspacing="0">
<tr>
<td width="71%" align="left" class="xuxian"><a href="newsite.html" target="_blank">·为什么选择众佳智能?</a></td>
</tr>
<tr>
<td align="left" class="xuxian"><a href="newsite.html" target="_blank">·干混砂浆;板材安装;水泥制品销售</a></td>
</tr>
<tr>
<td align="left" class="xuxian"><a href="newsite.html" target="_blank">·水泥制品制造;建筑砌块制造</a></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td valign="top"><img src="images/1759200520.jpg" width="257" height="122" /></td>
</tr>
</table></td>
<td width="720" valign="top"><table width="100%" border="0" align="center" cellpadding="5" cellspacing="0">
<tr>
<td width="71%" align="left" class="font_14 xuxian"><strong>联系我们</strong></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="20" class="hg_30">
<tr valign="top">
<td align="left"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="34%" valign="top"><span class="font_14"><strong>众佳智能</strong></span><br />
地址:武汉北红安开发区川东大道 <br />
电话:021-62088509 <br />
传真:021-33592792<br />
手机:13166016078<br />
QQ:735422820<br />
邮箱:[email protected]<br />
邮编:200040 </td>
<td width="66%">
<!--百度地图容器-->
<div style="width:455px;height:354px;border:#ccc solid 1px;" id="dituContent"></div>
<script type="text/javascript">
//创建和初始化地图函数:
function initMap(){
createMap();//创建地图
setMapEvent();//设置地图事件
addMapControl();//向地图添加控件
addMarker();//向地图中添加marker
}
//创建地图函数:
function createMap(){
var map = new BMap.Map("dituContent");//在百度地图容器中创建一个地图
var point = new BMap.Point(114.622385,31.048045);//定义一个中心点坐标
map.centerAndZoom(point,16);//设定地图的中心点和坐标并将地图显示在地图容器中
window.map = map;//将map变量存储在全局
}
//地图事件设置函数:
function setMapEvent(){
map.enableDragging();//启用地图拖拽事件,默认启用(可不写)
map.enableScrollWheelZoom();//启用地图滚轮放大缩小
map.enableDoubleClickZoom();//启用鼠标双击放大,默认启用(可不写)
map.enableKeyboard();//启用键盘上下左右键移动地图
}
//地图控件添加函数:
function addMapControl(){
//向地图中添加缩放控件
var ctrl_nav = new BMap.NavigationControl({anchor:BMAP_ANCHOR_TOP_LEFT,type:BMAP_NAVIGATION_CONTROL_LARGE});
map.addControl(ctrl_nav);
//向地图中添加缩略图控件
var ctrl_ove = new BMap.OverviewMapControl({anchor:BMAP_ANCHOR_BOTTOM_RIGHT,isOpen:1});
map.addControl(ctrl_ove);
//向地图中添加比例尺控件
var ctrl_sca = new BMap.ScaleControl({anchor:BMAP_ANCHOR_BOTTOM_LEFT});
map.addControl(ctrl_sca);
}
//标注点数组
var markerArr = [{title:"湖北众佳智能建材有限公司",content:"地址:武汉北红安开发区川东大道",point:"114.62155|31.047318",isOpen:1,icon:{w:23,h:25,l:46,t:21,x:9,lb:12}}
];
//创建marker
function addMarker(){
for(var i=0;i<markerArr.length;i++){
var json = markerArr[i];
var p0 = json.point.split("|")[0];
var p1 = json.point.split("|")[1];
var point = new BMap.Point(p0,p1);
var iconImg = createIcon(json.icon);
var marker = new BMap.Marker(point,{icon:iconImg});
var iw = createInfoWindow(i);
var label = new BMap.Label(json.title,{"offset":new BMap.Size(json.icon.lb-json.icon.x+10,-20)});
marker.setLabel(label);
map.addOverlay(marker);
label.setStyle({
borderColor:"#808080",
color:"#333",
cursor:"pointer"
});
(function(){
var index = i;
var _iw = createInfoWindow(i);
var _marker = marker;
_marker.addEventListener("click",function(){
this.openInfoWindow(_iw);
});
_iw.addEventListener("open",function(){
_marker.getLabel().hide();
})
_iw.addEventListener("close",function(){
_marker.getLabel().show();
})
label.addEventListener("click",function(){
_marker.openInfoWindow(_iw);
})
if(!!json.isOpen){
label.hide();
_marker.openInfoWindow(_iw);
}
})()
}
}
//创建InfoWindow
function createInfoWindow(i){
var json = markerArr[i];
var iw = new BMap.InfoWindow("<b class='iw_poi_title' title='" + json.title + "'>" + json.title + "</b><div class='iw_poi_content'>"+json.content+"</div>");
return iw;
}
//创建一个Icon
function createIcon(json){
var icon = new BMap.Icon("http://app.baidu.com/map/images/us_mk_icon.png", new BMap.Size(json.w,json.h),{imageOffset: new BMap.Size(-json.l,-json.t),infoWindowOffset:new BMap.Size(json.lb+5,1),offset:new BMap.Size(json.x,json.h)})
return icon;
}
initMap();//创建和初始化地图
</script>
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
<tr>
<td height="79" background="images/in_28.jpg"><table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="195" align="center"><img src="images/logo1.png" width="125" height="60" /></td>
<td width="39" align="center"><img src="images/in_31.jpg" width="4" height="50" /></td>
<td width="766" align="left" class="font_999">地址:武汉北红安开发区川东大道 电话:021-62088509 传真:021-33592792<br />
Copyright © 2021 - 2022 湖北众佳智能建材有限公司 版权所有</td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>