javascript动态隐藏显示技术

发表于:2007-06-21来源:作者:点击数: 标签:
html head script language=" Java Script" type="text/ java script" !-- function viewnone(e){ e.style.display=(e.style.display=="none")?"":"none"; } function viewntwo(e,t){ e.style.display=t; } //-- /script html head script language="JavaScr

   
  <html>
<head>
<script language="JavaScript" type="text/javascript">
<!--
function viewnone(e){
e.style.display=(e.style.display=="none")?"":"none";
}
function viewntwo(e,t){

e.style.display=t;
}
//-->
</script>

<html>
<head>
<script language="JavaScript" type="text/javascript">
<!--
function viewnone(e){
e.style.display=(e.style.display=="none")?"":"none";
}
function viewntwo(e,t){
e.style.display=t;
}
//-->
</script>
</head>
<body>
<form>
<table width="100%" border="1" cellspacing="0" cellpadding="0" height="36">
<tr>
<td height="18">
<input type="checkbox" name="checkbox" value="checkbox" onClick="viewnone(test)">
<input type="radio" name="t" value="0" checked onClick="viewntwo(test,'none')">no
<input type="radio" name="t" value="1" onClick="viewntwo(test,'')">yes
开启更多选填项

<input id="test" type="text" name="T1" size="20" style="display:none"></td>

</tr>
<tbody id="test" style="display:none ">
<tr>
<td height="18">test</td>
</tr>
</tbody>
</table>
</form>
</body>
</html>

原文转自:http://www.ltesting.net