<body onload="testFun();">
下面是我自己改的一段代码:
<table width="100%" border="0" cellpadding="0" cellspacing="0" background="../images/loginbg1.gif">
<tr>
<td> 类型:
<select name="selectObj" onchange="testFun();">
<option value="1" >个 人</option>
<option value="2" >企 业</option>
</select>
</td></tr>
</table>
<table width="80%" border="0" cellspacing="0" cellpadding="3" align="center" id=tb1 style='DISPLAY:none'>
<tr>
<td bgcolor="#CCCCCC"> </td>
</tr>
</table>
<table width="80%" border="0" cellspacing="0" cellpadding="3" align="center" id=tb2 style='DISPLAY:none'>
<tr>
<td bgcolor="#999999"> </td>
</tr>
</table><script language=javascript>
function testFun()
{
var theSelectValue=document.all.selectObj.value;
document.all('tb'+theSelectValue).style.display='';
document.all('tb'+(3-theSelectValue)).style.display='none';}</script>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货