方法一:
在页面中加入下面CSS代码即可
<style>
a {blr:expression(this.onFocus=this.blur())}
area {blr:expression(this.onFocus=this.blur())}
</style>
方法二:
加上:
onfocus= "this.blur() "
如:
<map name="Map" id="Map">
<area shape="rect" coords="44,172,168,236" href="html/zuji.html" target="mainFrame" onfocus= "this.blur() "
/>
<area shape="rect" coords="43,250,162,318" href="html/fengcai.html" target="mainFrame" onfocus= "this.blur() " />
<area shape="rect" coords="38,332,161,397" href="html/tiandi.html" target="mainFrame" onfocus= "this.blur() " />
<area shape="rect" coords="38,406,164,475" href="html/guancha.html" target="mainFrame" onfocus= "this.blur() " />
<area shape="poly"
coords="73,77,58,73,52,64,50,54,53,48,52,39,56,29,63,25,74,21,78,23,86,16,100,14,108,16,116,20,130,16,141,18,153,25,156,34,167,43,166,62,156,70,146,84,132,87,127,93,120,99,111,99,90,89,85,86,77,83,66,75,63,77"
href="main.html" target="mainFrame" onfocus= "this.blur() "
alt="" />
</map>

本文介绍两种方法来取消页面中链接的高亮显示效果。一种是在CSS中设置所有链接的onFocus事件触发blur方法,另一种是在每个链接元素上直接添加onfocus=this.blur()属性。
262





