用javascript屏蔽链接URL的显示
2008-11-05 19:59:59 来源:WEB开发网<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="KeyWords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<BODY>
<div>
<div>
<a href="#">测试1</a>
<a href="#">测试2</a>
<a href="#">测试3</a>
</div>
<div>
<div id="WT_NOR_Testa" style="Display:none;">a</div>
<div id="WT_NOR_Testb" style="Display:none;">b</div>
<div id="WT_NOR_Testc" style="Display:none;">c</div>
</div>
</div>
<script>
function change(index){
var arr=[document.getElementById("WT_NOR_Testa"),document.getElementById("WT_NOR_Testb"),document.getElementById("WT_NOR_Testc")];
for(var i=0;i<arr.length;i++){
if(index==i){
arr[i].style.display="";
}else{
arr[i].style.display="none";
}
}
}
</script>
</BODY>
</HTML>
Tags:javascript 屏蔽 链接
编辑录入:爽爽 [复制链接] [打 印]更多精彩
赞助商链接