tdname.style.display=none
框架的话,同理
框架的话,同理
解决方案 »
- 老外说要做一个popup,具体指做什么东西?
- jquery 对话框 show hide 效果属性值
- 从xml中取内容
- 用jQuery熟悉的 来帮我看看 这个好实现吗?是关于select框的
- 文字闪烁的效果问题
- innerHTML赋值问题
- 请高手帮我看看这个页面那里有问题,div死活不能居中
- 有什么软件能查找文件中哪些字是重复出现的,比如txt文件中,某人说JS脚本就搞定了,主要用indexOf和substring,可我不懂
- 怎么判断一个Function是否存在
- 看看这段代码:为什么zzz.html中的hidden提交不到form123.php中(PHP设置没问题(其他的都行))???
- return false;以后程序还往下走吗?还是BREAK了??谢谢
- 100分求救,在线等待!
<tr><td id=td1 width=300>aaa</td><td width=300>bbb</td></tr>
</table><input type=button value=ok onclick="document.all.td1.style.display=(document.all.td1.style.display=='none')?'':'none'">
<tr>
<td onClick="menu.style.display=(menu.style.display=='block'?'none':'block');">x</td>
<td id="menu" style="display:block">etpowrei|troet|iperti</td>
</tr>
</table>
<table border=1 id="t1">
<tr>
<td id="td1">afaf</td>
<td id="td2">asdf</td>
</tr>
</table>
我下面用一个按钮来实现隐藏:
<input type=button value="change" onclick()="window.document.t1.td1.style.display=none">
但是这样不行。
请问代码改怎样写?谢谢!