有位朋友blackcourser(be stronger……)告诉我了这么做,document.all.qiye.style.display="none";//隐藏
document.all.qiye.style.display="";//显示"qiye"就是一个对象id,例如表格中的行
可我不知道具体怎么做,谁能讲的详细点?多谢了
document.all.qiye.style.display="";//显示"qiye"就是一个对象id,例如表格中的行
可我不知道具体怎么做,谁能讲的详细点?多谢了
<INPUT TYPE="radio" NAME="sel" onclick="div2.style.display = ''; div1.style.display = 'none';">
<div id="div1">
<INPUT TYPE="text" NAME="">
<INPUT TYPE="text" NAME="">
<INPUT TYPE="submit">
</div>
<div id="div2" style='display:none'>
<INPUT TYPE="text" NAME="">
<INPUT TYPE="text" NAME="">
<TEXTAREA NAME="" ROWS="" COLS=""></TEXTAREA>
<INPUT TYPE="checkbox" NAME="">
</div>
<html>
<head>
<script type="text/javascript">
</script>
</head>
<body>
<table id="signin51job" class=nshow width="210" cellpadding="3" cellspacing="0" border="0">
<form name='loginform' method='post' action='/my/My_Pmc.php' onSubmit='return check()'>
<tr>
<td height='20'>
<input type="radio" name="membertype" checked onClick="javascript: document.getElementById('td1').style.visibility='hidden'">个人会员
<input type="radio" name="membertype" onClick="javascript: document.getElementById('td1').style.visibility='visible'">企业会员</td>
</tr>
<tr>
<td height='20'>会员名:
<input type='text' name='username' value='' size='10' maxlength='50' style='width:80px;height:20px'>
</td>
</tr>
<tr>
<td height='20'>密 码:
<input type='password' name='password' size='10' maxlength='16' style='width:80px;height:20px'>
</td>
</tr>
<tr>
<td id="td1" style="visibility:hidden" height='20'>验证码:
<input type='password' name='password' size='10' maxlength='16' style='width:80px;height:20px'>
</td>
</tr>
</form>
</table>
</body>
</html>