动态控制table可见 <table id="tb1">显示tb1.style.display="inline"隐藏tb1.style.display="none" 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <INPUT type="checkbox" onclick="show(this.checked)">显示<br><TABLE id=tb1 style="display:none;" border=1> <TR> <TD>name1</TD> <TD>address1</TD> </TR></TABLE><script>function show(isShow){document.all.tb1.style.display=isShow?"inline":"none" }</script> <TABLE id=tb1 style="display:none"> <TR> <TD>name1</TD> <TD>address1</TD> </TR></TABLE><INPUT type="button" onclick="tb1.sytle.display='block'"> document.all('tbl').style.display='none' <script language=javascript>function hide(){ document.getElementById("table1").style.display='none';}</script><table border="1" width="100%" id="table1"> <tr> <td> </td> </tr></table><form method="POST" action=""> <p><input type="button" value="按钮" name="B3" onclick="hide();"></p></form> 更完整的:<html><head><meta http-equiv="Content-Language" content="zh-cn"><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title></title><script language=javascript>function hide(){ document.getElementById("table1").style.display='none';}function show(){ document.getElementById("table1").style.display='';}</script></head><body><table border="1" width="100%" id="table1"> <tr> <td> </td> </tr></table><form method="POST" action=""> <p><input type="button" value="show" name="B3" onclick="hide();"> <input type="button" value="hide" name="B4" onclick="show();"></p></form></body></html> 求给我用javascript实现的一个网页·我是初学者谢谢 jquery.cookie.js获取中文问题 问大家一个EXTJS编辑框的问题。 原来型对象 javascript 去掉字符串中的双引号问题 js实现textbox隐藏,但刷新过后textbox 又显示问题~~ 100分 求高手 求获得浏览器屏幕宽高和鼠标位置的函数。兼容IE和FF…… 求教高人解释一小段程序 表单自动刷新的问题? 动态生成的id,如何判断id是否是数组? 如何打印框架结构的某个框架或者某一个iframe? 如何实现点击单选radio组中的一个提交表单
<TABLE id=tb1 style="display:none;" border=1>
<TR>
<TD>name1</TD>
<TD>address1</TD>
</TR>
</TABLE>
<script>
function show(isShow){
document.all.tb1.style.display=isShow?"inline":"none"
}
</script>
<TR>
<TD>name1</TD>
<TD>address1</TD>
</TR>
</TABLE><INPUT type="button" onclick="tb1.sytle.display='block'">
function hide()
{
document.getElementById("table1").style.display='none';
}
</script><table border="1" width="100%" id="table1">
<tr>
<td> </td>
</tr>
</table>
<form method="POST" action="">
<p><input type="button" value="按钮" name="B3" onclick="hide();"></p>
</form>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
<script language=javascript>
function hide()
{
document.getElementById("table1").style.display='none';
}
function show()
{
document.getElementById("table1").style.display='';
}
</script>
</head>
<body>
<table border="1" width="100%" id="table1">
<tr>
<td> </td>
</tr>
</table>
<form method="POST" action="">
<p><input type="button" value="show" name="B3" onclick="hide();">
<input type="button" value="hide" name="B4" onclick="show();"></p>
</form>
</body>
</html>