noHref 屬性可設(shè)置或返回某個區(qū)域是活動的還是非活動的。
areaObject.noHref=true|false
<area> 標(biāo)簽的 nohref 屬性在客戶端圖像映射中定義了一個對鼠標(biāo)敏感的區(qū)域,而該區(qū)域不會在用戶選取它時采取任何操作。你必須為每個 <area> 標(biāo)簽都包含一個 href 或 nohref 屬性。
下面的例子可返回圖像映射中 "Venus" 區(qū)域的 "noHref" 狀態(tài):
<html>
<body>
<img src="planets.gif"
width="145" height="126"
usemap="#planetmap" />
<map name="planetmap">
<area id="venus" shape="circle"
coords="124,58,8"
alt="Venus"
href="venus.htm" />
</map>
<p>noHref status:
<script type="text/javascript">
x=document.getElementById('venus');
document.write(x.noHref
);
</script>
</p>
</script>
</body>
</html>
如對本文有疑問,請?zhí)峤坏浇涣髡搲?,廣大熱心網(wǎng)友會為你解答??! 點擊進入論壇
Powered by 365建站網(wǎng) RSS地圖 HTML地圖
copyright © 2013-2024 版權(quán)所有 鄂ICP備17013400號