try
document.getElementById("divid").style.display = "none";
document.getElementById("divid").style.display = "none";
解决方案 »
- 急!!!!!button替代file类型表单的按钮为什么提交的时候file的值被清空了
- 一个很怪异的问题
- extjs editorgridpanel 更改后的数据提交到后台
- 提示错误后, 怎么还是提交信息呢?
- 如何用javascript操作xml排序输出
- 学习DTREE 遇到的一点疑问
- 两个条件判断,想同时成立的效果。。。。如何搞定??
- 谁知道怎样用XMLHTTP把数据写入服务器端的XML文件里(而不是从服务器读取XML)??
- 如何在页面中直接调用外部可执行文件(*.exe)?
- 请教几个javascript得问题,急
- 关闭模态对话框不打开新的窗口???? 急!!!!
- 网页横向打印, 打印不开, 那些数据就不打了. 怎么办?
function hide(){
document.getElementById("showmenu").style.display = "none";
}
</SCRIPT><body text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginhigh="2" onload=hide();>
<table width="100%" border="0" cellspacing="1" cellpadding="1" align=center bgcolor=black><tr>
<div id="showmenu" name="showmenu" style=""><td width=15% bgcolor="#ADB0EC" height=16 align=center>
<img title="显示菜单栏" border="0" src="images/showmenu.gif" />
<a href="#" onclick="showmenu();"><font color="#000000">显示菜单栏</font></a></td></div>
<script>
var innerHTML = '';
for (i=0; i<MAXMENUSHORTNUM; i++) {
innerHTML = innerHTML + '<td width=15% bgcolor="#ADB0EC" height=30 align=center>';
innerHTML = innerHTML + '<a href="#" onclick="returnRunScript(' + i + ')">';
innerHTML = innerHTML + '<font color="#000000">';
innerHTML = innerHTML + arrName[i];
innerHTML = innerHTML + '</font></a></td>';
}
innerHTML = innerHTML + '<td width=15% bgcolor="#ADB0EC" height=16 align=center><a href="./MenuShortInput.jsp" target="fraInterface"><font color="#000000">定制快捷菜单</font></a></td>';
innerHTML = innerHTML + '</tr></table>';
document.write(innerHTML);
</script>
showmenu.style.visibility="hidden"隐藏