当前位置:开发者网络 >> 网页特效 >> 技 巧 类 >> 内容
精彩推荐
分类最新特效
分类热点特效
  
input框的隐藏显示
日期:2005-07-06   人气:   【字体: 】【收藏此文


<!-- 网页特效代码由[中国WEB开发者网络:http://www.ChinaWebDev.com]提供! -->
<!-- 要实现此效果需要 1 个步骤: -->

<!-- 第 1 步: -->
<!-- 把下面的代码加到<HEAD></HEAD>区域中: -->

<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>