中国地图鼠标经过省份热点弹出提示信息的网页特效

2024-01-08 04:58

本文主要是介绍中国地图鼠标经过省份热点弹出提示信息的网页特效,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

把下面代码复制一下放到txt中保存成html就可以了:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>中国地图鼠标经过省份热点弹出提示信息的网页特效 by js.alixixi.com</title>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<script src="http://code.jquery.com/jquery-1.7.min.js" type="text/javascript"></script>
<style type="text/css">
.map img { width:496px; height: 415px; }
.mapDiv { width:140px; height:61px; padding: 5px; color:#369; background: url('http://static.blueidea.com/attachment/forum/201203/15/153950vvth6ctbmx45kh4t.gif') no-repeat; position:absolute; display: none; word-break:break-all; }
</style><script type="text/javascript">$(document).ready(function(){$("area").each(function(){var $x=-70;var $y=-80; var name=$(this).attr("alt"); $(this).mouseover(function(e){var index_num=$(this).index();var dom="<div class='mapDiv'><p>提示消息 by js.allixixi.com<span class='name'></span><span class='num'></span></p></div>";$("body").append(dom);$(".name").text(name);$(".num").text(index_num)$(".mapDiv").css({top: (e.pageY + $y)+"px",left: (e.pageX + $x)+"px"}).show("fast");}).mouseout(function(){    $(".mapDiv").remove();}).mousemove(function(e){$(".mapDiv").css({top: (e.pageY + $y)+"px",left: (e.pageX + $x)+"px"})});});   })
</script>
</head>
<body>
<div class="map">
<img border="0" usemap="#Map" src="http://static.blueidea.com/attachment/forum/201203/15/1544302yufceen0c3nbjzu.png" />
<map name="Map" id="Map"><area id="beijing" alt="北京" href="forum.php?gid=1" coords="354,140,380,153" shape="rect"><area id="shanghai" alt="上海" href="forum.php?gid=3" coords="434,246,462,259" shape="rect"><area id="tianjin" alt="天津" href="forum.php?gid=2" coords="382,168,408,180" shape="rect"><area id="chongqing" alt="重庆" href="forum.php?gid=4" coords="294,264,320,276" shape="rect"><area id="hebei" alt="河北" href="forum.php?gid=5" coords="347,174,374,186" shape="rect"><area id="shanxi" alt="山西"  href="forum.php?gid=6" coords="322,186,348,198" shape="rect"><area id="neimenggu" alt="内蒙古" href="forum.php?gid=7" coords="349,110,388,124" shape="rect"><area id="liaoning" alt="辽宁" href="forum.php?gid=8" coords="406,128,432,140" shape="rect"><area id="jilin" alt="吉林" href="forum.php?gid=9" coords="427,101,454,115" shape="rect"><area id="heilongjiang" alt="黑龙江" href="forum.php?gid=10" coords="424,58,464,73" shape="rect"><area id="jiangsu" alt="江苏" href="forum.php?gid=11" coords="404,224,417,250" shape="rect"><area id="zhejiang" alt="浙江" href="forum.php?gid=12" coords="413,265,427,291" shape="rect"><area id="anhui" alt="安徽" href="forum.php?gid=13" coords="382,236,395,263" shape="rect"><area id="fujian" alt="福建" href="forum.php?gid=14" coords="399,300,413,327" shape="rect"><area id="jiangxi" alt="江西" href="forum.php?gid=15" coords="371,286,385,313" shape="rect"><area id="shandong" alt="山东" href="forum.php?gid=16" coords="373,196,399,208" shape="rect"><area id="henan" alt="河南" href="forum.php?gid=17" coords="337,228,364,239" shape="rect"><area id="hubei" alt="湖北" href="forum.php?gid=18" coords="329,258,356,271" shape="rect"><area id="hunan" alt="湖南" href="forum.php?gid=19" coords="325,294,352,306" shape="rect"><area id="guangdong" alt="广东" href="forum.php?gid=20" coords="356,343,382,355" shape="rect"><area id="guangxi" alt="广西" href="forum.php?gid=21" coords="302,343,328,355" shape="rect"><area id="hainan" alt="海南" href="forum.php?gid=22" coords="313,398,340,411" shape="rect"><area id="sichuan" alt="四川" href="forum.php?gid=23" coords="239,265,265,277" shape="rect"><area id="guizhou" alt="贵州" href="forum.php?gid=24" coords="283,311,308,324" shape="rect"><area id="yunnan" alt="云南" href="forum.php?gid=25" coords="225,337,251,349" shape="rect"><area id="shaanxi" alt="陕西" href="forum.php?gid=26" coords="303,224,316,251" shape="rect"><area id="gansu" alt="甘肃" href="forum.php?gid=27" coords="179,156,205,168" shape="rect"><area id="qinghai" alt="青海" href="forum.php?gid=28" coords="174,206,200,218" shape="rect"><area id="ningxia" alt="宁夏" href="forum.php?gid=29" coords="277,188,290,212" shape="rect"><area id="xinjiang" alt="新疆" href="forum.php?gid=30" coords="85,140,111,152" shape="rect"><area id="xizang" alt="西藏" href="forum.php?gid=31" coords="87,249,113,261" shape="rect"><area id="xianggang" alt="香港" href="forum.php?gid=32" coords="379,358,406,370" shape="rect"><area id="aomen" alt="澳门" href="forum.php?gid=33" coords="349,371,375,383" shape="rect"><area id="taiwan" alt="台湾" href="forum.php?gid=34" coords="434,322,448,348" shape="rect">
</map>
</div>
</body>
</html>

 

这篇关于中国地图鼠标经过省份热点弹出提示信息的网页特效的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/582386

相关文章

网页解析 lxml 库--实战

lxml库使用流程 lxml 是 Python 的第三方解析库,完全使用 Python 语言编写,它对 XPath表达式提供了良好的支 持,因此能够了高效地解析 HTML/XML 文档。本节讲解如何通过 lxml 库解析 HTML 文档。 pip install lxml lxm| 库提供了一个 etree 模块,该模块专门用来解析 HTML/XML 文档,下面来介绍一下 lxml 库

无人叉车3d激光slam多房间建图定位异常处理方案-墙体画线地图切分方案

墙体画线地图切分方案 针对问题:墙体两侧特征混淆误匹配,导致建图和定位偏差,表现为过门跳变、外月台走歪等 ·解决思路:预期的根治方案IGICP需要较长时间完成上线,先使用切分地图的工程化方案,即墙体两侧切分为不同地图,在某一侧只使用该侧地图进行定位 方案思路 切分原理:切分地图基于关键帧位置,而非点云。 理论基础:光照是直线的,一帧点云必定只能照射到墙的一侧,无法同时照到两侧实践考虑:关

跨国公司撤出在华研发中心的启示:中国IT产业的挑战与机遇

近日,IBM中国宣布撤出在华的两大研发中心,这一决定在IT行业引发了广泛的讨论和关注。跨国公司在华研发中心的撤出,不仅对众多IT从业者的职业发展带来了直接的冲击,也引发了人们对全球化背景下中国IT产业竞争力和未来发展方向的深思。面对这一突如其来的变化,我们应如何看待跨国公司的决策?中国IT人才又该如何应对?中国IT产业将何去何从?本文将围绕这些问题展开探讨。 跨国公司撤出的背景与

韦季李输入法_输入法和鼠标的深度融合

在数字化输入的新纪元,传统键盘输入方式正悄然进化。以往,面对实体键盘,我们常需目光游离于屏幕与键盘之间,以确认指尖下的精准位置。而屏幕键盘虽直观可见,却常因占据屏幕空间,迫使我们在操作与视野间做出妥协,频繁调整布局以兼顾输入与界面浏览。 幸而,韦季李输入法的横空出世,彻底颠覆了这一现状。它不仅对输入界面进行了革命性的重构,更巧妙地将鼠标这一传统外设融入其中,开创了一种前所未有的交互体验。 想象

从戴尔公司中国大饭店DTF大会,看科技外企如何在中国市场发展

【科技明说 | 科技热点关注】 2024戴尔科技峰会在8月如期举行,虽然因事未能抵达现场参加,我只是观看了网上在线直播,也未能采访到DTF现场重要与会者,但是通过数十年对戴尔的跟踪与观察,我觉得2024戴尔科技峰会给业界传递了6大重要信号。不妨简单聊聊:从戴尔公司中国大饭店DTF大会,看科技外企如何在中国市场发展? 1)退出中国的谣言不攻自破。 之前有不良媒体宣扬戴尔将退出中国的谣言,随着2

EasyPlayer.js网页H5 Web js播放器能力合集

最近遇到一个需求,要求做一款播放器,发现能力上跟EasyPlayer.js基本一致,满足要求: 需求 功性能 分类 需求描述 功能 预览 分屏模式 单分屏(单屏/全屏) 多分屏(2*2) 多分屏(3*3) 多分屏(4*4) 播放控制 播放(单个或全部) 暂停(暂停时展示最后一帧画面) 停止(单个或全部) 声音控制(开关/音量调节) 主辅码流切换 辅助功能 屏

禁止复制的网页怎么复制

禁止复制的网页怎么复制 文章目录 禁止复制的网页怎么复制前言准备工作操作步骤一、在浏览器菜单中找到“开发者工具”二、点击“检查元素(inspect element)”按钮三、在网页中选取需要的片段,锁定对应的元素四、复制被选中的元素五、粘贴到记事本,以`.html`为后缀命名六、打开`xxx.html`,优雅地复制 前言 在浏览网页的时候,有的网页内容无法复制。比如「360

Unity3D自带Mouse Look鼠标视角代码解析。

Unity3D自带Mouse Look鼠标视角代码解析。 代码块 代码块语法遵循标准markdown代码,例如: using UnityEngine;using System.Collections;/// MouseLook rotates the transform based on the mouse delta./// Minimum and Maximum values can

简单的角色响应鼠标而移动

actor类 //处理移动距离,核心是找到角色坐标在世界坐标的向量的投影(x,y,z),然后在世界坐标中合成,此CC是在地面行走,所以Y轴投影始终置为0; using UnityEngine; using System.Collections; public class actor : MonoBehaviour { public float speed=0.1f; CharacterCo

火语言RPA流程组件介绍--浏览网页

🚩【组件功能】:浏览器打开指定网址或本地html文件 配置预览 配置说明 网址URL 支持T或# 默认FLOW输入项 输入需要打开的网址URL 超时时间 支持T或# 打开网页超时时间 执行后后等待时间(ms) 支持T或# 当前组件执行完成后继续等待的时间 UserAgent 支持T或# User Agent中文名为用户代理,简称 UA,它是一个特殊字符串头,使得服务器