<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
<title>无标题文档</title>
<script type='text/javascript'>
function createMap()
{
document.getElementById("map").innerHTML="<map name='Map' id='Map'> <area shape='rect' coords='24,22,112,55' href='/html/RECENTTRAINING/' target='_blank' /> <area shape='rect' coords='126,25,220,90' href='/html/JOINBAMAOLFAMILY/BAMAOLSAPPLICATIONFORCOUNSELINGPSYCHOLOGISTS/index.htm' target='_blank' /> <area shape='rect' coords='22,59,114,90' href='/html/HOTLINE/' target='_blank' /> <area shape='rect' coords='13,115,73,186' href='/html/VIDEO/' target='_blank' /> <area shape='rect' coords='82,115,143,187' href='/html/MENTALMUSIC/' target='_blank' /> <area shape='rect' coords='154,116,219,187' href='http://mail.bamaol.com' target='_blank' /></map>";
}
window.onload=createMap;
</script>
</head>
<body>
<img src="/image/top0019.gif" usemap="#Map" />
<div id="map">
</div>
</body>
</html>
为什么不能实现动态设置图片的热区呢?
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
<title>无标题文档</title>
<script type='text/javascript'>
function createMap()
{
document.getElementById("map").innerHTML="<map name='Map' id='Map'> <area shape='rect' coords='24,22,112,55' href='/html/RECENTTRAINING/' target='_blank' /> <area shape='rect' coords='126,25,220,90' href='/html/JOINBAMAOLFAMILY/BAMAOLSAPPLICATIONFORCOUNSELINGPSYCHOLOGISTS/index.htm' target='_blank' /> <area shape='rect' coords='22,59,114,90' href='/html/HOTLINE/' target='_blank' /> <area shape='rect' coords='13,115,73,186' href='/html/VIDEO/' target='_blank' /> <area shape='rect' coords='82,115,143,187' href='/html/MENTALMUSIC/' target='_blank' /> <area shape='rect' coords='154,116,219,187' href='http://mail.bamaol.com' target='_blank' /></map>";
}
window.onload=createMap;
</script>
</head>
<body>
<img src="/image/top0019.gif" usemap="#Map" />
<div id="map">
</div>
</body>
</html>
为什么不能实现动态设置图片的热区呢?
解决方案 »
- window.showhelp的问题
- 如何用 JAVASCRIPT或 COM 程序读取选中网页内容的HTML代码
- js如何实现页面的自动倒计时跳转呢???
- ajax在WINDOW2003下的末指定错误
- 大师请指点JQ插件开发入门问题感谢
- 急急急急急急急急急急急急急急急急!!!!求时间段内的日期
- 關於在createPopup窗體中加入JS函數的問題?
- 用JavaScript如何实现浏览器刷新?
- 怎样在onkenup事件中用正则表达式实现只能输入负号、数字、和一个小数点?并根据某一参数确定小数的位数
- 我在ie里显示了spreadsheet,如何打印里面的内容?
- 有没有哪位大哥做过widget开发?
- 请教一段JS鼠标悬浮TIP代码
<script>createMap();</script>
<img src="/image/top0019.gif" usemap="#Map" />
你的Map还没有生成所以自然就忽略了