<!-- 把下列代码加到<body>区域中 -->
<input type="button" value="隐藏" onclick="csan(did,'none')">
<input type="button" value="显示" onclick="csan(did,'')">
<input id="did">
<br>
<input type="button" value="隐藏" onclick="csan(dis,'none')">
<input type="button" value="显示" onclick="csan(dis,'')">
<input id="dis">
<script>
function csan(obj,sta){
eval("obj.style.display=\""+sta+"\"");
}
</script>