如何隐藏文本框的层.

cnqj_cn 2009-08-20 09:09:03
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<script language="javascript">
function change_menu ()
{
alert("kkdfsk");

}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i <d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i <d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i <(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
obj.visibility=v; }
}

</script>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>查询</title>
</head>

<body>
<form id="form1" name="form1" method="post" action="">
<label>
<input type="submit" name="Submit2" value="查询" />
<input name="radiobutton" type="radio" onclick="MM_showHideLayers('layer2','','hide')" value="e" />
班11
<input name="radiobutton" type="radio" onclick="MM_showHideLayers('layer1','','show')" value="f" checked="checked" />
班22
<input type="radio" name="radiobutton" onclick="MM_showHideLayers('layer1','','hide')" value="g" />
班33
</label>
<label> </label>
<table width="610" border="1">
<tr>
<th width="168" scope="col">编号</th>
<th width="168" scope="col"><div id="layer1" class="h j">时间(开始)

</div> </th>
<th width="168" scope="col"><div id="layer2" class="h j">时间(结束) </div></th>
<th width="78" scope="col">年龄</th>
</tr>
<tr>
<td><label><span class="h j">
<input type="text" name="textfield" />
</span></label></td>
<td><label><span class="h j">
<input type="text" name="textfield2" />
</span></label></td>
<td><label><span class="h j">
<input type="text" name="textfield3" />
</span></label></td>
<td><label>
<input type="text" name="textfield4" />
</label></td>
</tr>
</table>
</form>
</body>
</html>

怎样隐藏"时间(开始)"和"时间(结束)"的标签和文本框?
隐藏后表格"年龄"的标签和文本框能不能左对齐"编号"排列?.
...全文
322 点赞 收藏 1
写回复
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
money8899 2009-08-22
业余消灭零回复贴
回复
发动态
发帖子
ASP
创建于2007-09-28

2.8w+

社区成员

ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
申请成为版主
社区公告
暂无公告