惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
V2EX
C
Check Point Blog
博客园_首页
B
Blog
D
Docker
U
Unit 42
量子位
I
InfoQ
有赞技术团队
有赞技术团队
Martin Fowler
Martin Fowler
GbyAI
GbyAI
L
LangChain Blog
云风的 BLOG
云风的 BLOG
博客园 - Franky
美团技术团队
T
The Blog of Author Tim Ferriss
阮一峰的网络日志
阮一峰的网络日志
月光博客
月光博客
Vercel News
Vercel News
Recent Announcements
Recent Announcements
雷峰网
雷峰网
大猫的无限游戏
大猫的无限游戏
小众软件
小众软件
Google DeepMind News
Google DeepMind News

博客园 - 郭大侠

【原创】还有比我这更简单的静态树吗? - 郭大侠 - 博客园 asp.net获得路径的方法 用表格实现简单网站左侧导航 div里面套3个div,居中显示,兼容ie6-8,ff,咋就这么麻烦呢 网站设计之asp.net网站多语言版本 vs2005常用快捷键 Repeater显示父子表数据,无闪烁 jquery学习相关 show div and mouse can move on the div js+div+css 模拟弹出对话框 送大家一首歌曲,《保卫延安》片尾曲 vs2005调试javascript url重写 总有人问js二级联动问题,给出我写的一个例子 - 郭大侠 - 博客园 oracle横表变竖表问题 中国房地产的实质 北京奥运会赛事电视直播表(绝对完整)--每天就抱着电视看吧! 动物为什么会预知地震,地震后为什么会下雨? 新工资税计算方法及年终奖个税算法
js map
郭大侠 · 2009-06-24 · via 博客园 - 郭大侠

 只能在IE下玩啊.

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>maptest</title>
<script type="text/javascript">
    
function show(v)
    {
        
var obj=document.getElementById("divinfo");
        obj.style.display
='';
        obj.innerHTML
=v;
        obj.style.left
=event.clientX+20;
        obj.style.top
=event.clientY;
    }
    
function hide()
    {
        
var obj=document.getElementById("divinfo");
        obj.style.display
='none';
    }
    
function showc()
    {
        window.status
=event.clientX +":" +event.clientY;
    }
</script>
</head>
<body style="margin:0px;padding:0px;">
<img id="Img1" alt="" src="http://images.cnblogs.com/cnblogs_com/guodaxia/197040/o_1.jpg" usemap="#ImageMapImageMap1" style="border-width:1px" onmousemove="showc();" />
<map id="ImageMapImageMap1">
    
<area shape="circle" style="background:black;" coords="100,100,100" href="#" title="圆" alt="" onmouseover="show('圆形区域');" onmouseout="hide();" />
    
<area shape="rect" coords="200,200,300,300"  href="#" title="方的" alt="" onmouseover="show('方形区域');" onmouseout="hide();" />
    
<area shape="poly" coords="500,300,550,350,500,400,480,350"  href="#" title="多边形" alt=""  onmouseover="show('多边形');" onmouseout="hide();" />
    
<area shape="poly" coords="574,130,600,130,610,155,565,155"  href="#" title="英山县" alt=""  onmouseover="show('英山县');" onmouseout="hide();" />
    
<area shape="poly" coords="185,230,220,230,220,270,185,270"  href="#" title="火车站" alt=""  onmouseover="show('火车站');" onmouseout="hide();" />
</map>
<div id="divinfo" style="border:solid 1px black;width:100px;height:100px;text-align:center;line-height:100px;;position:absolute;display:none;background:silver;"></div>
</body>
</html>