<SCRIPT language="javascript">
function setWidth2()
{
var v;
v=window.document.getElementById("LeftTable").getAttribute("width");
if(v==181)
{
window.document.getElementById("LeftTable").setAttribute("width",1,true);
}
else
{
window.document.getElementById("LeftTable").setAttribute("width",181);
}
}
function viewALT2()
{
}
</SCRIPT>
下面是调用代码:
<TABLE id="Table1" height="100%" cellSpacing="0" cellPadding="0" width="7" border="0">
<TBODY>
<TR>
<TD onclick="javascript:setWidth2();" bgColor="#045715"><A onfocus="this.blur();" onclick="setWidth2();" href="javascript:setWidth2()" name="cur">
<IMG onmouseover="viewALT2();" alt="单击隐藏左边面板" src="/OA/Image/button.gif" border="0" name="imgsize"></A>
</TD>
</TR>
</TBODY>
</TABLE>
function setWidth2()
{
var v;
v=window.document.getElementById("LeftTable").getAttribute("width");
if(v==181)
{
window.document.getElementById("LeftTable").setAttribute("width",1,true);
}
else
{
window.document.getElementById("LeftTable").setAttribute("width",181);
}
}
function viewALT2()
{
}
</SCRIPT>
下面是调用代码:
<TABLE id="Table1" height="100%" cellSpacing="0" cellPadding="0" width="7" border="0">
<TBODY>
<TR>
<TD onclick="javascript:setWidth2();" bgColor="#045715"><A onfocus="this.blur();" onclick="setWidth2();" href="javascript:setWidth2()" name="cur">
<IMG onmouseover="viewALT2();" alt="单击隐藏左边面板" src="/OA/Image/button.gif" border="0" name="imgsize"></A>
</TD>
</TR>
</TBODY>
</TABLE>
function setWidth2()
{
var v;
v=window.document.getElementById("LeftTable").getAttribute("width");
if(v==181)
{
window.document.getElementById("LeftTable").setAttribute("width",1,true);
}
else
{
window.document.getElementById("LeftTable").setAttribute("width",181);
}
}
function viewALT2()
{
}
</SCRIPT>
<TABLE id="LeftTable" height="100%" cellSpacing="0" cellPadding="0" width="7" border="0">
<TBODY>
<TR>
<TD onclick="javascript:setWidth2();" bgColor="#045715"><A onfocus="this.blur();" onclick="setWidth2();" href="javascript:setWidth2()" name="cur">
<IMG onmouseover="viewALT2();" alt="单击隐藏左边面板" src="/OA/Image/button.gif" border="0" name="imgsize"></A>
</TD>
</TR>
</TBODY>
</TABLE>
--><TABLE id="LeftTable"
--> <TABLE id="LeftTable"
Table1是另外一个table了
你的意思是要同时把他的visible也变成false????