jQuery地圖熱點效果-滑鼠經過彈出提示層資訊
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>地圖熱點效果-滑鼠經過彈出提示資訊</title>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
</head>
<script src="/ajaxjs/jquery-1.6.2.min.js" type="text/javascript"></script><!-- 建議用1.7的jquery -->
<script type="text/javascript">var jq = jQuery.noConflict();</script><!-- 為了讓DZ X2支援jquery 載入時替換庫中的$為jq -->
<style type="text/css">
.map img { width:496px; height: 415px; }
.mapDiv { padding: 5px; width:170px; height:61px; color:#369; background: url('hotarrow.gif') no-repeat; }
</style><!-- CSS樣式 -->
<body>
<!-- JS 如果需要讀取變數最好寫在網頁裡,也可以寫在JS檔案裡!-->
<script type="text/javascript">
jq(document).ready(function(){
jQuery.fn.extend({
TitleShow: function(strHTML) {
var xOffset = 80;
var yOffset = -75;
var preview = jq("#preview_container");
if(preview.length<=0){
jq("body").append("<div id='preview_container'></div>");
preview = jq("#preview_container");
}
preview.css({
"display":"none",
"position":"absolute",
"width":"150px",
"word-break":"break-all"
});
return this.each(function() {
var _this = jq(this);
_this.hover(
function(e){
preview.html(strHTML);
preview
.css("top",(e.pageY - xOffset) + "px")
.css("left",(e.pageX + yOffset) + "px")
.css("opaticy",0)
.show()
.stop()
.animate({"opacity":0.9},300);
},function(){
preview
.stop()
.animate({"opacity":0},300,function(){
jq(this).hide();
});
}
)
_this.mousemove(function(e){
preview
.css("top",(e.pageY - xOffset) + "px")
.css("left",(e.pageX + yOffset) + "px");
});
});
}
});
jq("#beijing").TitleShow("<div class='mapDiv'>北京地圖熱點效果-這裡是測試換行效果-這裡是測試換行效果</div>");
jq("#tianjin").TitleShow("<div class='mapDiv'>天津地圖熱點效果2</div>");
jq("#shanghai").TitleShow("<div class='mapDiv'>上海地圖熱點效果3</div>");
jq("#chongqing").TitleShow("<div class='mapDiv'>重慶地圖熱點效果4</div>");
jq("#hebei").TitleShow("<div class='mapDiv'>河北地圖熱點效果5</div>");
jq("#shanxi").TitleShow("<div class='mapDiv'>山西地圖熱點效果6</div>");
jq("#neimenggu").TitleShow("<div class='mapDiv'>內蒙古地圖熱點效果7</div>");
jq("#liaoning").TitleShow("<div class='mapDiv'>地圖熱點效果8</div>");
jq("#jilin").TitleShow("<div class='mapDiv'>地圖熱點效果9</div>");
jq("#heilongjiang").TitleShow("<div class='mapDiv'>黑龍江地圖熱點效果10</div>");
jq("#jiangsu").TitleShow("<div class='mapDiv'>地圖熱點效果11</div>");
jq("#zhejiang").TitleShow("<div class='mapDiv'>地圖熱點效果12</div>");
jq("#anhui").TitleShow("<div class='mapDiv'>地圖熱點效果13</div>");
jq("#fujian").TitleShow("<div class='mapDiv'>地圖熱點效果14</div>");
jq("#jiangxi").TitleShow("<div class='mapDiv'>地圖熱點效果15</div>");
jq("#shandong").TitleShow("<div class='mapDiv'>山東地圖熱點效果16</div>");
jq("#henan").TitleShow("<div class='mapDiv'>河南地圖熱點效果17</div>");
jq("#hubei").TitleShow("<div class='mapDiv'>湖北地圖熱點效果18</div>");
jq("#hunan").TitleShow("<div class='mapDiv'>地圖熱點效果l9</div>");
jq("#guangdong").TitleShow("<div class='mapDiv'>地圖熱點效果20e</div>");
jq("#guangxi").TitleShow("<div class='mapDiv'>地圖熱點效果21</div>");
jq("#hainan").TitleShow("<div class='mapDiv'>地圖熱點效果22</div>");
jq("#sichuan").TitleShow("<div class='mapDiv'>地圖熱點效果23</div>");
jq("#guizhou").TitleShow("<div class='mapDiv'>地圖熱點效果24</div>");
jq("#yunnan").TitleShow("<div class='mapDiv'>地圖熱點效果25</div>");
jq("#shaanxi").TitleShow("<div class='mapDiv'>地圖熱點效果26</div>");
jq("#gansu").TitleShow("<div class='mapDiv'>地圖熱點效果27</div>");
jq("#qinghai").TitleShow("<div class='mapDiv'>地圖熱點效果28</div>");
jq("#ningxia").TitleShow("<div class='mapDiv'>寧夏地圖熱點效果29</div>");
jq("#xinjiang").TitleShow("<div class='mapDiv'>新疆地圖熱點效果30</div>");
jq("#xizang").TitleShow("<div class='mapDiv'>地圖熱點效果31</div>");
jq("#xianggang").TitleShow("<div class='mapDiv'>香港地圖熱點效果32</div>");
jq("#aomen").TitleShow("<div class='mapDiv'>地圖熱點效果33</div>");
jq("#taiwan").TitleShow("<div class='mapDiv'>地圖熱點效果34</div>");
});
</script>
<!--熱點HTML程式碼開始 -->
<div class="map">
<img border="0" usemap="#Map" src="map.png" />
<map name="Map" id="Map">
<area id="beijing" alt="北京" href="#" coords="354,140,380,153" shape="rect">
<area id="shanghai" alt="上海" href="#" coords="434,246,462,259" shape="rect">
<area id="tianjin" alt="天津" href="#" coords="382,168,408,180" shape="rect">
<area id="chongqing" alt="重慶" href="#" coords="294,264,320,276" shape="rect">
<area id="hebei" alt="河北" href="#" coords="347,174,374,186" shape="rect">
<area id="shanxi" alt="山西" href="#" coords="322,186,348,198" shape="rect">
<area id="neimenggu" alt="內蒙古" href="#" coords="349,110,388,124" shape="rect">
<area id="liaoning" alt="遼寧" href="#" coords="406,128,432,140" shape="rect">
<area id="jilin" alt="吉林" href="#" coords="427,101,454,115" shape="rect">
<area id="heilongjiang" alt="黑龍江" href="#" coords="424,58,464,73" shape="rect">
<area id="jiangsu" alt="江蘇" href="#" coords="404,224,417,250" shape="rect">
<area id="zhejiang" alt="浙江" href="#" coords="413,265,427,291" shape="rect">
<area id="anhui" alt="安徽" href="#" coords="382,236,395,263" shape="rect">
<area id="fujian" alt="福建" href="#" coords="399,300,413,327" shape="rect">
<area id="jiangxi" alt="江西" href="#" coords="371,286,385,313" shape="rect">
<area id="shandong" alt="山東" href="#" coords="373,196,399,208" shape="rect">
<area id="henan" alt="河南" href="#" coords="337,228,364,239" shape="rect">
<area id="hubei" alt="湖北" href="#" coords="329,258,356,271" shape="rect">
<area id="hunan" alt="湖南" href="#" coords="325,294,352,306" shape="rect">
<area id="guangdong" alt="廣東" href="#" coords="356,343,382,355" shape="rect">
<area id="guangxi" alt="廣西" href="#" coords="302,343,328,355" shape="rect">
<area id="hainan" alt="海南" href="#" coords="313,398,340,411" shape="rect">
<area id="sichuan" alt="四川" href="#" coords="239,265,265,277" shape="rect">
<area id="guizhou" alt="貴州" href="#" coords="283,311,308,324" shape="rect">
<area id="yunnan" alt="雲南" href="#" coords="225,337,251,349" shape="rect">
<area id="shaanxi" alt="陝西" href="#" coords="303,224,316,251" shape="rect">
<area id="gansu" alt="甘肅" href="#" coords="179,156,205,168" shape="rect">
<area id="qinghai" alt="青海" href="#" coords="174,206,200,218" shape="rect">
<area id="ningxia" alt="寧夏" href="#" coords="277,188,290,212" shape="rect">
<area id="xinjiang" alt="新疆" href="#" coords="85,140,111,152" shape="rect">
<area id="xizang" alt="西藏" href="#" coords="87,249,113,261" shape="rect">
<area id="xianggang" alt="香港" href="#" coords="379,358,406,370" shape="rect">
<area id="aomen" alt="澳門" href="#" coords="349,371,375,383" shape="rect">
<area id="taiwan" alt="臺灣" href="#" coords="434,322,448,348" shape="rect">
</map>
</div>
<div><A href="http://www.999jiujiu.com/">http://www.999jiujiu.com/</A></div>
</body>
</html>
<html>
<head>
<title>地圖熱點效果-滑鼠經過彈出提示資訊</title>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
</head>
<script src="/ajaxjs/jquery-1.6.2.min.js" type="text/javascript"></script><!-- 建議用1.7的jquery -->
<script type="text/javascript">var jq = jQuery.noConflict();</script><!-- 為了讓DZ X2支援jquery 載入時替換庫中的$為jq -->
<style type="text/css">
.map img { width:496px; height: 415px; }
.mapDiv { padding: 5px; width:170px; height:61px; color:#369; background: url('hotarrow.gif') no-repeat; }
</style><!-- CSS樣式 -->
<body>
<!-- JS 如果需要讀取變數最好寫在網頁裡,也可以寫在JS檔案裡!-->
<script type="text/javascript">
jq(document).ready(function(){
jQuery.fn.extend({
TitleShow: function(strHTML) {
var xOffset = 80;
var yOffset = -75;
var preview = jq("#preview_container");
if(preview.length<=0){
jq("body").append("<div id='preview_container'></div>");
preview = jq("#preview_container");
}
preview.css({
"display":"none",
"position":"absolute",
"width":"150px",
"word-break":"break-all"
});
return this.each(function() {
var _this = jq(this);
_this.hover(
function(e){
preview.html(strHTML);
preview
.css("top",(e.pageY - xOffset) + "px")
.css("left",(e.pageX + yOffset) + "px")
.css("opaticy",0)
.show()
.stop()
.animate({"opacity":0.9},300);
},function(){
preview
.stop()
.animate({"opacity":0},300,function(){
jq(this).hide();
});
}
)
_this.mousemove(function(e){
preview
.css("top",(e.pageY - xOffset) + "px")
.css("left",(e.pageX + yOffset) + "px");
});
});
}
});
jq("#beijing").TitleShow("<div class='mapDiv'>北京地圖熱點效果-這裡是測試換行效果-這裡是測試換行效果</div>");
jq("#tianjin").TitleShow("<div class='mapDiv'>天津地圖熱點效果2</div>");
jq("#shanghai").TitleShow("<div class='mapDiv'>上海地圖熱點效果3</div>");
jq("#chongqing").TitleShow("<div class='mapDiv'>重慶地圖熱點效果4</div>");
jq("#hebei").TitleShow("<div class='mapDiv'>河北地圖熱點效果5</div>");
jq("#shanxi").TitleShow("<div class='mapDiv'>山西地圖熱點效果6</div>");
jq("#neimenggu").TitleShow("<div class='mapDiv'>內蒙古地圖熱點效果7</div>");
jq("#liaoning").TitleShow("<div class='mapDiv'>地圖熱點效果8</div>");
jq("#jilin").TitleShow("<div class='mapDiv'>地圖熱點效果9</div>");
jq("#heilongjiang").TitleShow("<div class='mapDiv'>黑龍江地圖熱點效果10</div>");
jq("#jiangsu").TitleShow("<div class='mapDiv'>地圖熱點效果11</div>");
jq("#zhejiang").TitleShow("<div class='mapDiv'>地圖熱點效果12</div>");
jq("#anhui").TitleShow("<div class='mapDiv'>地圖熱點效果13</div>");
jq("#fujian").TitleShow("<div class='mapDiv'>地圖熱點效果14</div>");
jq("#jiangxi").TitleShow("<div class='mapDiv'>地圖熱點效果15</div>");
jq("#shandong").TitleShow("<div class='mapDiv'>山東地圖熱點效果16</div>");
jq("#henan").TitleShow("<div class='mapDiv'>河南地圖熱點效果17</div>");
jq("#hubei").TitleShow("<div class='mapDiv'>湖北地圖熱點效果18</div>");
jq("#hunan").TitleShow("<div class='mapDiv'>地圖熱點效果l9</div>");
jq("#guangdong").TitleShow("<div class='mapDiv'>地圖熱點效果20e</div>");
jq("#guangxi").TitleShow("<div class='mapDiv'>地圖熱點效果21</div>");
jq("#hainan").TitleShow("<div class='mapDiv'>地圖熱點效果22</div>");
jq("#sichuan").TitleShow("<div class='mapDiv'>地圖熱點效果23</div>");
jq("#guizhou").TitleShow("<div class='mapDiv'>地圖熱點效果24</div>");
jq("#yunnan").TitleShow("<div class='mapDiv'>地圖熱點效果25</div>");
jq("#shaanxi").TitleShow("<div class='mapDiv'>地圖熱點效果26</div>");
jq("#gansu").TitleShow("<div class='mapDiv'>地圖熱點效果27</div>");
jq("#qinghai").TitleShow("<div class='mapDiv'>地圖熱點效果28</div>");
jq("#ningxia").TitleShow("<div class='mapDiv'>寧夏地圖熱點效果29</div>");
jq("#xinjiang").TitleShow("<div class='mapDiv'>新疆地圖熱點效果30</div>");
jq("#xizang").TitleShow("<div class='mapDiv'>地圖熱點效果31</div>");
jq("#xianggang").TitleShow("<div class='mapDiv'>香港地圖熱點效果32</div>");
jq("#aomen").TitleShow("<div class='mapDiv'>地圖熱點效果33</div>");
jq("#taiwan").TitleShow("<div class='mapDiv'>地圖熱點效果34</div>");
});
</script>
<!--熱點HTML程式碼開始 -->
<div class="map">
<img border="0" usemap="#Map" src="map.png" />
<map name="Map" id="Map">
<area id="beijing" alt="北京" href="#" coords="354,140,380,153" shape="rect">
<area id="shanghai" alt="上海" href="#" coords="434,246,462,259" shape="rect">
<area id="tianjin" alt="天津" href="#" coords="382,168,408,180" shape="rect">
<area id="chongqing" alt="重慶" href="#" coords="294,264,320,276" shape="rect">
<area id="hebei" alt="河北" href="#" coords="347,174,374,186" shape="rect">
<area id="shanxi" alt="山西" href="#" coords="322,186,348,198" shape="rect">
<area id="neimenggu" alt="內蒙古" href="#" coords="349,110,388,124" shape="rect">
<area id="liaoning" alt="遼寧" href="#" coords="406,128,432,140" shape="rect">
<area id="jilin" alt="吉林" href="#" coords="427,101,454,115" shape="rect">
<area id="heilongjiang" alt="黑龍江" href="#" coords="424,58,464,73" shape="rect">
<area id="jiangsu" alt="江蘇" href="#" coords="404,224,417,250" shape="rect">
<area id="zhejiang" alt="浙江" href="#" coords="413,265,427,291" shape="rect">
<area id="anhui" alt="安徽" href="#" coords="382,236,395,263" shape="rect">
<area id="fujian" alt="福建" href="#" coords="399,300,413,327" shape="rect">
<area id="jiangxi" alt="江西" href="#" coords="371,286,385,313" shape="rect">
<area id="shandong" alt="山東" href="#" coords="373,196,399,208" shape="rect">
<area id="henan" alt="河南" href="#" coords="337,228,364,239" shape="rect">
<area id="hubei" alt="湖北" href="#" coords="329,258,356,271" shape="rect">
<area id="hunan" alt="湖南" href="#" coords="325,294,352,306" shape="rect">
<area id="guangdong" alt="廣東" href="#" coords="356,343,382,355" shape="rect">
<area id="guangxi" alt="廣西" href="#" coords="302,343,328,355" shape="rect">
<area id="hainan" alt="海南" href="#" coords="313,398,340,411" shape="rect">
<area id="sichuan" alt="四川" href="#" coords="239,265,265,277" shape="rect">
<area id="guizhou" alt="貴州" href="#" coords="283,311,308,324" shape="rect">
<area id="yunnan" alt="雲南" href="#" coords="225,337,251,349" shape="rect">
<area id="shaanxi" alt="陝西" href="#" coords="303,224,316,251" shape="rect">
<area id="gansu" alt="甘肅" href="#" coords="179,156,205,168" shape="rect">
<area id="qinghai" alt="青海" href="#" coords="174,206,200,218" shape="rect">
<area id="ningxia" alt="寧夏" href="#" coords="277,188,290,212" shape="rect">
<area id="xinjiang" alt="新疆" href="#" coords="85,140,111,152" shape="rect">
<area id="xizang" alt="西藏" href="#" coords="87,249,113,261" shape="rect">
<area id="xianggang" alt="香港" href="#" coords="379,358,406,370" shape="rect">
<area id="aomen" alt="澳門" href="#" coords="349,371,375,383" shape="rect">
<area id="taiwan" alt="臺灣" href="#" coords="434,322,448,348" shape="rect">
</map>
</div>
<div><A href="http://www.999jiujiu.com/">http://www.999jiujiu.com/</A></div>
</body>
</html>
相關文章
- jQuery跟隨滑鼠移動的彈出層效果jQuery
- jQuery拖拽的彈出層效果jQuery
- js實現彈出層滑鼠跟隨效果JS
- css滑鼠懸浮彈出說明層效果CSS
- jquery 滑鼠移到圖片彈出浮動層顯示大圖片例子jQuery
- jQuery實現的滑鼠滑過連結出現自定義提示效果jQuery
- css滑鼠懸浮小圖彈出大圖效果CSS
- JavaScript點選按鈕彈出層效果JavaScript
- 滑鼠懸浮小圖彈出大圖效果詳解
- GridView滑鼠經過感知以及點選行彈出視窗View
- jQuery點選小圖彈出大圖jQuery
- Win10系統經常彈出熱點資訊如何禁止Win10
- jQuery帶炫酷輪播圖效果的Lightbox彈出層外掛jQuery
- jquery滑鼠懸浮彈出帶有箭頭的tips效果jQuery
- jQuery實現的自定義可以拖動的彈出層效果jQuery
- 點選頂部彈出提示層程式碼例項
- jQuery點選顯示彈出層例項程式碼jQuery
- jquery外掛實現滑鼠移動到中國地圖提示框地區資料提示的特效jQuery地圖特效
- jQuery 滑鼠懸浮連結彈出跟隨圖片詳解jQuery
- 地圖熱點 jquery.image-maps.js 的使用地圖jQueryJS
- jQuery滑鼠懸停顯示提示資訊視窗jQuery
- jQuery實現的點選彈出登陸視窗效果jQuery
- 使用jquery製作彈出框效果jQuery
- jQuery彈出層外掛popboxjQuery
- jQuery隨滑鼠旋轉的圖形效果jQuery
- 滑鼠懸浮彈出滑鼠跟隨層程式碼例項
- 純CSS彈出層,城市切換效果CSS
- jQuery彈出帶有遮罩視窗效果jQuery遮罩
- JQuery滑鼠移到小圖顯示大圖效果的方法jQuery
- Dreamweaver製作滑鼠經過圖片漸漸變暗效果教程
- 點選瀏覽器後退按鈕時彈出提示資訊瀏覽器
- 滑鼠經過、移出、點選命令
- 【qml】一個圖片hover彈出滑框說明資訊效果
- jquery實現的彈出居中視窗效果jQuery
- jquery刪除記錄彈出提示框jQuery
- jquery焦點圖效果視訊jQuery
- jquery智慧彈出層,自動判斷位置jQuery
- 當滑鼠放在連線上出現提示框效果