根据图中的盲点坐标,弹出div层
<div class="map_r" id="mapinfo" style="position: absolute; top: 20px; left: 500px;
display: block;">
<div class="title_4">
站点预报与实况值</div>
<div class="list_map">
<ul>
<li>站点预报:<br />
<span id="liveclock">
<script language="javascript">
function displaytime() {
thisdate = new Date()
thismonth = thisdate.getMonth()
thismonth = thismonth +
thisday = thisdate.getDate()
thisyear = thisdate.getYear()
thisweek = thisdate.getDay(); switch (thisweek) {
case : thisweek = "星期日"; break; case : thisweek = "星期一"; break; case : thisweek = "星期二"; break; case : thisweek = "星期三"; break; case : thisweek = "星期四"; break; case : thisweek = "星期五"; break; case : thisweek = "星期六"; break;
}
if (thisyear < )
{ thisyear = thisyear + }
document.getElementById("liveclock").innerHTML = thismonth + "月" + thisday + "日";
}
displaytime(); setInterval('displaytime()', ); </script> </span> 阴有阵雨或<br />
雷雨转阴到 多云 -℃<br />
</li>
<li>
<p>
站点实况:</p>
<p>
<img src="../html/new_cmqx/images/pic_11.png" width="" height="" align="left" />2分钟平均风向:<span id="winddirection" runat="server"></span><br />
2分钟平均风速:<span id="windspeed" runat="server"></span></p>
</li>
<li>
<img src="../html/new_cmqx/images/pic_14.png" width="" height="" align="left" />
气温:<span id="Temperature" runat="server"></span><br />
</li>
<li>
<img src="../html/new_cmqx/images/pic_16.png" width="" height="" align="left" />小时雨量:<span id="Rain_sum" runat="server"></span></li>
</ul>
</div>
</div>
<img src="../html/new_cmqx/images/map_11.png" width="" height="" id="map" border="" usemap="#Map" />
<map name="Map" id="Map">
<area shape="rect" coords="98,32,114,48" onmousemove="showDetail(event)" onmouseout="hide();" />
<area shape="rect" coords="41,48,59,66" onmousemove="showDetail(event)" onmouseout="hide();" />
<area shape="rect" coords="26,83,46,103" onmousemove="showDetail(event)" onmouseout="hide();" />
<area shape="rect" coords="213,148,232,167" onmousemove="showDetail(event)" onmouseout="hide();" />
<area shape="rect" coords="248,159,267,178" onmousemove="showDetail(event)" onmouseout="hide();" />
<area shape="rect" coords="185,165,205,185" onmousemove="showDetail(event)" onmouseout="hide();" />
<area shape="rect" coords="157,180,175,198" onmousemove="showDetail(event)" onmouseout="hide();" />
<area shape="rect" coords="191,197,211,217" onmousemove="showDetail(event)" onmouseout="hide();" />
<area shape="rect" coords="371,192,393,214" onmousemove="showDetail(event)" onmouseout="hide();" />
<area shape="rect" coords="408,251,427,270" onmousemove="showDetail(event)" onmouseout="hide();" />
<area shape="rect" coords="363,272,384,293" onmousemove="showDetail(event)" onmouseout="hide();" />
<area shape="rect" coords="291,319,312,340" onmousemove="showDetail(event)" onmouseout="hide();" />
<area shape="rect" coords="395,374,417,396" onmousemove="showDetail(event)" onmouseout="hide();" />
</map>
前台设计
.map{ margin-top:10px; position:relative; background:#77d4ff;}
.map_r{ width:236px; height:384px; position:absolute; right:21px; top:14px; background:url(../images/bg_03.png)}
.title_4{ color:#439af3; text-align:center; line-height:30px; padding-top:35px; font-size:14px;}.list_map{ line-height:22px;}
.list_map li{ background:url(../images/list_03.png) no-repeat top; padding:7px 25px 5px; clear:both; }
.list_map li img{ margin-right:10px;}
CSS
根据图中的盲点坐标,弹出div层的更多相关文章
- js弹出div层,弹出层页面底部出现UL出现一条线问题
整个弹出div层,列表满一页时:底部会出现一条横线 原因:ul固定写在页面中了 解决方法: 将ul代码与li列表一样写在js中,如下 var newhtml = '<ul class=" ...
- js弹出div层内容(按回退键关闭div层及遮罩)
<!--弹出的div列表对应的详情--> <div id="newhtml" class="white_content"> <di ...
- 【JS新手教程】浏览器弹出div层1
JS中,可以弹出一个层来进行提示等作用,方法是利用css样式display样式,当display等于none时,该元素就不会在页面显示出来,而且元素也不会占空间.就是用户触发某些事件时,动态修改该样式 ...
- js点击弹出div层
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/ ...
- jQuery 弹出div层
目的:使用jQuery弹出一个div窗口:这种效果经常应用于页面内容的展示,登录效果的实现.其实,实现这种效果有好多种方式: 效果如下: 代码如下: <html> <head> ...
- 工作当中实际运用(3)——js原生实现鼠标点击弹出div层 在点击隐藏
function onmou(){ var divs=document.getElementById('kefuDV');//获取到你要操作的div if (divs.style.display==& ...
- 基于jquery ui修改的不依赖第三方的背景透明的弹出div
效果图: 代码: <!doctype html> <html> <head> <meta charset="utf-8"> < ...
- 【JS新手教程】弹出两层div,及在LODOP内嵌上层
前面的博文有个简单的弹出div层[JS新手教程]浏览器弹出div层1,有一层,不过为了提示,一般会不让用户可以点击该提示之外的地方的.如果让用户弹出层后,把其他的按钮和链接都设置不可用应该比较麻烦,如 ...
- JavaScript中的三种弹出对话框
学习过js的小伙伴会发现,我们在一些实例中用到了alert()方法.prompt()方法.prompt()方法,他们都是在屏幕上弹出一个对话框,并且在上面显示括号内的内容,使用这种方法使得页面的交互性 ...
随机推荐
- MongoDB与Redis的简单使用
mongodb 概念解析 SQL术语/概念 MongoDB术语/概念 解释说明 database database 数据库 table collection 数据库表/集合 row document ...
- 【MySQL】java.sql.SQLException: Incorrect string value: '\xF0\x9F\x98\xB3' for column
问题原因: 输入内容包含特殊字符,MySQL 中的列不支持. 解决方法 多数是修改 MySQL 的数据库和表结构,CHARSET 改为 utf8mb4,但本人测试还是不能传入 emoji. 后来在代码 ...
- Core CLR Host 源码简单分析
在定制 CLR Host的时候,可以通过调用如下代码,来获取当前需要被宿主的程序调用入口: hr = Host->CreateDelegate( domainId, L"Main,Ve ...
- C# 二维码的生成
nuget 搜索qrcodenet,然后选择下载gma.qrcodenet public partial class Form1 : Form { public Form1() { Initializ ...
- Flink状态专题:keyed state和Operator state
众所周知,flink是有状态的计算.所以学习flink不可不知状态. 正好最近公司有个需求,要用到flink的状态计算,需求是这样的,收集数据库新增的数据. ...
- python自动化测试框架unittest
对于刚学习python自动化测试的小伙伴来说,unittest是一个非常适合的框架: 通过unittest,可以管理测试用例的执行,自动生成简单的自动化测试报告: 首先我们尝试编写编写一个最简单的un ...
- SQL Labs刷题补坑记录(less31-less53)
LESS31: 双引号直接报错,那么肯定可以报错注入,并且也过滤了一些东西,^异或没有过滤,异或真香 -1" and (if(length(database())=8,1,0)) and & ...
- [Spring cloud 一步步实现广告系统] 16. 增量索引实现以及投送数据到MQ(kafka)
实现增量数据索引 上一节中,我们为实现增量索引的加载做了充足的准备,使用到mysql-binlog-connector-java 开源组件来实现MySQL 的binlog监听,关于binlog的相关知 ...
- spring-boot-starter-quartz集群实践
[**前情提要**]由于项目需要,需要一个定时任务集群,故此有了这个spring-boot-starter-quartz集群的实践.springboot的版本为:2.1.6.RELEASE:quart ...
- react-native 入门基础介绍
目录 安装 项目 主要目录结构 入口 Home模块 Coobook模块 List模块 novel模块 相关参考 一个简单的demo,用于介绍react-native相关基础信息,主要是针对有兴趣的同学 ...