如何通过触发页面事件(例如select的chang),隐藏或显示页面组件的内容?给100分 Object.style.display = ""; //--ShowObject.style.display = "none"; //--Hide 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <html><head><title>调试</title><script language=javascript>function HideObj(Obj){ Obj.style.display = "none";}function ShowObj(Obj){ Obj.style.display = "";}</script></head><body><table id="Tab"> <tr> <td>这是表格内容</td> </tr></table><input type=button onclick="HideObj(window.document.all.Tab);" value="隐藏表格"><input type=button onclick="ShowObj(window.document.all.Tab);" value="显示表格"></body></html> 改了一下:<html><head><title>调试</title><script language=javascript>function ShowHideObj(Obj){ Obj.style.display = Obj.style.display=="none" ? "" : "none";}</script></head><body><input type=button onclick="ShowHideObj(Tab);" value="显示/隐藏"><table id="Tab"> <tr><td>这是表格内容</td></tr></table></body></html> 网页中右边是视频,播放到某一片段时左边的图片会跟着刷新,求解~ 如何在当前行的下面增加一行? 请教:错误:对象不支持此属性或方法! 各位用过FCKeditor的大侠,如何用javascript获取编辑框内容啊?在线等.... 用JS如何连接ACCESS 再线等~~~~~~~~~~~ 读不出来select框的值 javascript 中用Replace 替换的奇怪问题??? 初学者的简单问题,大家快来抢分啦! 要快!!快?写一个鼠标跟随的时钟程序?? 一个有关mediaplayer的问题,在先给分 继续问全选的问题 请问用JAVASCRIPT怎样让主机喇叭发生,调用如beep()函数的功能
<head>
<title>调试</title>
<script language=javascript>
function HideObj(Obj)
{
Obj.style.display = "none";
}
function ShowObj(Obj)
{
Obj.style.display = "";
}
</script>
</head>
<body>
<table id="Tab">
<tr>
<td>这是表格内容</td>
</tr>
</table>
<input type=button onclick="HideObj(window.document.all.Tab);" value="隐藏表格">
<input type=button onclick="ShowObj(window.document.all.Tab);" value="显示表格">
</body>
</html>
<head>
<title>调试</title>
<script language=javascript>
function ShowHideObj(Obj)
{
Obj.style.display = Obj.style.display=="none" ? "" : "none";
}
</script>
</head>
<body><input type=button onclick="ShowHideObj(Tab);" value="显示/隐藏"><table id="Tab">
<tr><td>这是表格内容</td></tr>
</table></body>
</html>