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>
版权声明:本文博客原创文章。博客,未经同意,不得转载。
jQuery地图热点效应-后在弹出的提示鼠标层信息的更多相关文章
- js在关闭页面前弹出确认提示【转载】
最近项目中出现个bug,就是导出数据后,会提示确认导航,其实实际需求并不需要这个提示,可能是之前遗留的问题.查了下资料是在触发了onbeforeunload事件,那么剩下的就是代码组织问题了. 众所周 ...
- Jquery地图热点效果-鼠标经过弹出提示信息
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/ ...
- 【代码笔记】iOS-点击搜索按钮,或放大镜后都会弹出搜索框
一, 效果图. 二,工程图. 三,代码. RootViewController.h #import <UIKit/UIKit.h> #import "CLHSearchBar.h ...
- NET使用了UpdatePanel后如何弹出对话框!
原文:NET使用了UpdatePanel后如何弹出对话框! 在ajax中的UpdatePanel弹出对话窗,可以使用: ScriptManager.RegisterStartupScript(Upda ...
- SVN 安装后右键出现点击鼠标右键弹出错误提示:CrashHandler initialization error
SVN 安装后右键出现点击鼠标右键弹出错误提示:CrashHandler initialization error 原因是目标文件夹中缺少SendRpt.exe文件 解决方案:找svn是好的的同事将b ...
- 关于解决DevExpress用DevExpress patch工具破解后经常弹出试用框的问题
方法有效自己试过很棒!!!!!!!! 第一:破解工具:DevExpressComponents-14.1.4和破解工具 第二:解决DevExpress用DevExpress patch工具破解后经常弹 ...
- eclipse 去掉Eclipse打开后定期弹出Usage Data Upload对话框
Eclipse 的 UDC 老定期蹦出来说要上传使用数据到 eclipse 官网服务器去除方法: 1.删除 eclipse/plugins 目录下以 org.eclipse.epp.usagedata ...
- ASP.NET中的几种弹出框提示基本实现方法
我们在.NET程序的开发过程中,常常需要和用户进行信息交互,比如执行某项操作是否成功,“确定”还是“取消”,以及选择“确定”或“取消”后是否需要跳转到某个页面等,下面是本人对常用对话框使用的小结,希望 ...
- INNO:检测程序是否已经安装,是则弹出卸载提示。
INNO:检测程序是否已经安装,是则弹出卸载提示. 作者:少轻狂 | 发布:2010-08-05 | 更新:2013-09-05 | 分类:部署 | Disposition | 热度:2816 ℃ 实 ...
随机推荐
- MySQL在大数据Limit使用
它已被用于Oracle一世.但今天,很惊讶,MySQL在对数量级的性能,甚至差距如此之大不同的顺序相同的功能. 看看表ibmng(id,title,info) 只要 id key 指数title ...
- 构建自己的Java并发模型框架
Java的多线程特性为构建高性能的应用提供了极大的方便,可是也带来了不少的麻烦.线程间同步.数据一致性等烦琐的问题须要细心的考虑,一不小心就会出现一些微妙的,难以调试的错误. 另外.应用逻辑和线程逻辑 ...
- 一起学习android图片四舍五入图片集资源 (28)
效果图: 參看下面代码: public class MainActivity extends Activity { private ImageView imageView1; private Imag ...
- 第3周 区_SQL Server中管理空间的基本单位
原文:第3周 区_SQL Server中管理空间的基本单位 哇哦,SQL Server性能调优培训已经进入第3周了!同时你已经对SQL Server内核运行机制有了很好的认识.今天我会讲下SQL Se ...
- 做web项目时对代码修改后浏览器端不生效的应对方法(持续更新)
做web项目时,经常会遇到修改了代码,但浏览器端没有生效,原因是多种多样的,我会根据我遇到的情况逐步更新解决办法 1.运行的时候采用debug模式,一般情况下使用项目部署按钮右边那个按钮下的tomca ...
- 程序员之---C语言细节22(函数返回指针注意事项<悬空指针>、查看进程能够分配的内存大小)
主要内容:函数返回指针注意事项<悬空指针>.查看进程能够分配的内存大小 #include <stdio.h> char * favorite_fruit() { static ...
- 在C#环境中动态调用IronPython脚本(二)
一.Python数据类型与C#数据类型的对应 Python中数据类型中的简单类型,例如int,float,string可以对应到C#环境中的int32,double,string,这些对应比较直观,P ...
- 实现app上对csdn的文章列表上拉刷新下拉加载以及加入缓存文章列表的功能 (制作csdn app 四)
转载请标明出处:http://blog.csdn.net/lmj623565791/article/details/23698511 今天继续对我们的csdn客户端未完成的功能进行实现,本篇博客接着客 ...
- RH033读书笔记(3)-Lab 4 Browsing the Filesystem
Lab 4 Browsing the Filesystem Sequence 1: Directory and File Organization 1. Log in as user student ...
- Linux 没有 my.cnf 解决方案文件完全我自己的整个教程很多口才
我看过好多关于Linux下没有my.cnf的博客,都是什么rmp安装没有my.cnf文件啊,然后什么两个方法啊,我就无语了,大家要是知道就不会查资料了,你们敢不敢负责点?说具体点?有的说从 /usr/ ...