【发布时间】:2014-03-11 02:20:06
【问题描述】:
在我的网站上,我必须显示我国家的所有地区,我已经有我的国家的图片,因此每个地区的所有坐标。但是我想根据对 Region, IE 的检查来显示特定的背景:
区域 1 返回 "ok" => Region 1's 背景为绿色
区域 2 返回"critical" => Region2's 背景为红色
HTML 示例:
<img src="ai13400_original.png" usemap="#ai13400" width="647" height="436" alt="click map" border="0" />
<map id="ai13400" name="ai13400">
<!-- Region 1 -->
<area shape="rect" alt="top" title="top" coords="136,39,288,189" href="#" target="_blank" />
<!-- Region 2 -->
<area shape="rect" alt="topr" title="topr" coords="286,40,464,188" href="#" target="_blank" />
<!-- Region 3 -->
<area shape="rect" alt="bottom" title="bottom" coords="136,190,286,339" href="#" target="_blank" />
<!-- Region 4 -->
<area shape="rect" alt="bottomr" title="bottomr" coords="286,188,464,339" href="#" target="_blank" />
<area shape="default" nohref alt="" />
</map>
【问题讨论】:
标签: javascript php dictionary background