根据图中的盲点坐标,弹出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()方法,他们都是在屏幕上弹出一个对话框,并且在上面显示括号内的内容,使用这种方法使得页面的交互性 ...
随机推荐
- Python装饰器实现类Java注解功能
最近想用Python写一个简单生成器,类似指定类型和范围,返回指定列表: 比如想要 0 ~ 3 的整数,则 我只需要指定: 最小:0, 最大:3, 步长:1 则返回一个 [0,1,2,3] 的列表 ...
- python常用函数进阶(2)之map,filter,reduce,zip
Basic Python : Map, Filter, Reduce, Zip 1-Map() 1.1 Syntax # fun : a function applying to the iterab ...
- TestNG独立运行的几种方法.md
目录 通过main函数调用testng.xml文件,然后打成可执行jar包执行 1 假设我们已经写好了testng.xml,现在我们需要写一个主类和main函数用来调用testng.xml 2 把项目 ...
- Lexical or preprocessor 'XXX/XXX.h' issue file not found
最近做第三方登录,引入了第三库,结果就出来个这个问题.如下图所示: 刚开始编译运行都没问题,可下次再打开时就报这个错误…… 一个比较弱智的解决办法: 1. 删除第三方库文件(删除到垃圾箱,而且还要在文 ...
- Asp.Net MVC 高级特性(附带源码剖析)
1. 程序入口(MvcHandler,RouteHandler,HttpModule) 2.异步类包(静态类AsyncResultWrapper),开启整个MVC异步循环 3.Aggregate递归链 ...
- 从JavaScript到Python之异常
不少前端工程师看到这个标题可能会产生质问: 我js用得好好的,能后端能APP,为什么还要学习Python? 至少有下面两个理由: 学习曲线.ES6之后的JavaScript(TypeScript)的在 ...
- 本地NTP服务器与客户端配置
1. NTP 简介 NTP是网络时间协议(Network Time Protocol),它是用来同步网络中各个计算机的时间的协议. 在集群中,为了保证各节点之间的时间一致,我们通常需要配置本地的 NT ...
- 前端插件之Datatables使用--上篇
工欲善其事,必先利其器 本系列文章介绍我在运维系统开发过程中用到的那些顺手的前端插件,前边两篇分别介绍了Duallistbox插件和Select2插件的使用,这一篇开始Databases的征服之旅 D ...
- 邻域保持嵌入(NPE)
传统的线性降维方法,如主成分分析(PCA).因子分析(FA)等,关注的是样本的方差,能学习线性流形的结构,却无法学习非线性流形.而经典的流形学习方法虽然能够学习非线性流形结构,但由于本身属于直推学习, ...
- 结构型设计模式——适配器模式(Go)
适配器模式: 适配器模式是用于当别人提供的对象或接口中的方法或者其它属性啥的和我们的重复了,或者看的不顺眼.名字太长了记不住,而将其包装到一个对象中,然后通过你感觉自己舒服的方式或者方法名字去间接的调 ...