难题!有可能是个bug
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--
function area1_onclick() {
var temp=document.getElementById("area2").value
document.getElementById("area1").value=temp
document.getElementById("area1").style.display="none"
document.getElementById("area1").style.visibility="hidden"
document.getElementById("area2").style.display=""
document.getElementById("area2").style.visibility="visible"
}
function area2_onchange() {
//document.getElementById("area1").value=document.getElementById("area2").value
var temp=document.getElementById("area2").value
document.getElementById("area1").value=temp
}
function area2_onmouseout() {
// document.getElementById("area1").value=document.getElementById("area2").value
var temp=document.getElementById("area2").value
document.getElementById("area1").value=temp
document.getElementById("area2").style.display="none"
document.getElementById("area2").style.visibility="hidden"
document.getElementById("area1").style.display=""
document.getElementById("area1").style.visibility="visible"
}
<DIV id=Layer1
style="HEIGHT: 424px; LEFT: 1px; POSITION: absolute;visibility:hidden; TOP: 70px; WIDTH: 314px; Z-INDEX: 1">
<form name='house' method='post' action='suppermarket.asp' target=_top>
<table border="0" width="100%" height="239" style="BACKGROUND-COLOR: silver; HEIGHT: 344px; WIDTH: 219px">
<tr>
<td height="12">
<input type="radio" name="price" checked value ="unit"> <FONT size=2><nobr> 单价(元)</nobr></FONT></NOBR>
</td><td>
<input type="radio" name="price" value="total"><nobr> 总价(万)</nobr></FONT></td><td width=12><a name="btClose" onclick="window.Layer1.style.visibility='hidden';"><IMG align=right height=12 src="image\divclose1.gif" width=12></a></td>
</tr>
<tr>
<td colspan="3" height=19>区域<input name="area1" class=tboxface
LANGUAGE=javascript
onclick="return area1_onclick()"><select name="area2"
class=tboxface
style ="DISPLAY: none; VISIBILITY: visible" LANGUAGE=javascript onchange="return area2_onchange()" onmouseout="return area2_onmouseout()">
<option value="全市" selected>全市</option>
<option value="黄浦">黄浦</option>
<option value="静安">静安</option>
<option value="徐汇">徐汇</option>
<option value="卢湾">卢湾</option>
</select></td>
</tr>
</table>
</DIV>
当我在area1中输入内容后,再让layer1不可见时,textbox还是可见的,而且area1_onclick还可以发生
如何才能让它隐藏呢?