| 導購 | 订阅 | 在线投稿
分享
 
 
 

用javascript屏蔽鏈接URL的顯示

來源:互聯網  2008-11-06 07:16:13  評論

<!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 onclick="change(0)" href="#">測試1</a>

<a onclick="change(1)" href="#">測試2</a>

<a onclick="change(2)" 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>

<!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 onclick="change(0)" href="#">測試1</a> <a onclick="change(1)" href="#">測試2</a> <a onclick="change(2)" 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>
󰈣󰈤
王朝萬家燈火計劃
期待原創作者加盟
 
 
 
>>返回首頁<<
 
 
 
 
 熱帖排行
 
 
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有