根据图中的盲点坐标,弹出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()方法,他们都是在屏幕上弹出一个对话框,并且在上面显示括号内的内容,使用这种方法使得页面的交互性 ...
随机推荐
- Java emoji持久化mysql
好久没有更新博客了,今天和大家分享一个关于emoji表情持久化问题,相信做web开发的都遇到过这样的问题,因为我们知道mysql的utf-8字符集保存不了保存不了表情字符,这是为什么呢?因为普通的字符 ...
- 灵活使用Maven Profile
项目中一直应用Maven的profile特性解决不同环境的部署问题.最近在尝试解决本地调试环境的时候碰到一些问题,顺便仔细研究了一下.因为项目仍然在用普通SpringMVC架构,没有切换到Spring ...
- js实现3D切换效果
今天分享一个3d翻转动画效果,js+css3+h5实现,没有框架. 先看下html部分: <div class="box"> <ul> <li> ...
- C++虚函数的工作原理
静态绑定与动态绑定 讨论静态绑定与动态绑定,首先需要理解的是绑定,何为绑定?函数调用与函数本身的关联,以及成员访问与变量内存地址间的关系,称为绑定. 理解了绑定后再理解静态与动态. 静态绑定:指在程序 ...
- 四、Python基础(1)
目录 四.Python基础(1) 四.Python基础(1) 1.什么是变量? 一种变化的量,量是记录世界上的状态,变指得是这些状态是会变化的. 2.为什么有变量? 因为计算机程序的运行就是一系列状态 ...
- IT技术管理者的自我修养
1. 前言 本来写<IT技术管理者的自我修养>与<IT技术人员的自我修养>是一开始就有的想法.但发表<IT技术人员的自我修养>后,收到了不少良好的反馈,博客园的编辑 ...
- 昏睡了8年的我带着第一个微信小程序今年醒了
工作8年之久的我今年算是彻底长进了,以前是知道自己的水平不咋地,但是没什么行动,理由是3年抱2娃,需要照顾孩子. 去年年底偶然一次看技术贴的时候,看到了博客园这个平台,看了很多大牛们的经历,也知道公司 ...
- http客户端-性能比较系列-第一篇-单线程
系列文章: 单线程性能测试:https://www.cnblogs.com/victor2302/p/11077208.html 多线程性能测试:https://www.cnblogs.com/vic ...
- -bash: redis: command not found
在linux中安装redis,先是拉过去安装,然后通过命令:make 进行编译 编译完成以后通过命令 make install 完成安装:结果在进行启动linux的时候执行 ...
- volatile关键字的详解-并发编程的体现
xl_echo编辑整理,欢迎转载,转载请声明文章来源.欢迎添加echo微信(微信号:t2421499075)交流学习. 百战不败,依不自称常胜,百败不颓,依能奋力前行.--这才是真正的堪称强大!! 参 ...