可以指定那几列隐藏,点击出现
<script language="javascript">
function ShowHide(types){
var str="";
if(types==0){
str="none";
}
if(typeof(eyhc.length)=="undefined"){
eyhc.style.display=str;
}else{
for(i=0;i<eyhc.length;i++){
eyhc[i].style.display=str;
}
}
}
</script>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="371"><input type="button" value="显示" οnclick="ShowHide(1)">
<input type="button" value="隐藏" οnclick="ShowHide(0)"> </td>
<td width="393" bgcolor="#FF0000"> </td>
<td width="67" bgcolor="#FFFF00" id="eyhc" style="display:"> </td>
<td width="67" bgcolor="#0000FF" id="eyhc" style="display:"> </td>
<td width="67" bgcolor="#00FFFF"> </td>
<td width="67" bgcolor="#66FF00" id="eyhc" style="display:"> </td>
<td width="68" bgcolor="#66FF00" id="eyhc" style="display:"> </td>
<td width="68" bgcolor="#66FF00" id="eyhc" style="display:"> </td>
<td width="68" bgcolor="#66FF00" id="eyhc" style="display:"> </td>
<td width="68" bgcolor="#66FF00" id="eyhc" style="display:"> </td>
<td width="68" bgcolor="#66FF00" id="eyhc" style="display:"> </td>
<td width="68" bgcolor="#990000" id="eyhc" style="display:"> </td>
<td width="68" bgcolor="#990000" id="eyhc" style="display:"> </td>
<td width="68" bgcolor="#990000" id="eyhc" style="display:"> </td>
<td width="68" bgcolor="#990000" id="eyhc" style="display:"> </td>
<td width="68" bgcolor="#990000" id="eyhc" style="display:"> </td>
<td width="68" bgcolor="#990000" id="eyhc" style="display:"> </td>
</tr>
<tr>
<td> </td>
<td bgcolor="#FF0000"> </td>
<td bgcolor="#FFFF00" id="eyhc" style="display:"> </td>
<td bgcolor="#0000FF" id="eyhc" style="display:"> </td>
<td bgcolor="#00FFFF"> </td>
<td bgcolor="#66FF00" id="eyhc" style="display:"> </td>
<td bgcolor="#66FF00" id="eyhc" style="display:"> </td>
<td bgcolor="#66FF00" id="eyhc" style="display:"> </td>
<td bgcolor="#66FF00" id="eyhc" style="display:"> </td>
<td bgcolor="#66FF00" id="eyhc" style="display:"> </td>
<td bgcolor="#66FF00" id="eyhc" style="display:"> </td>
<td bgcolor="#990000" id="eyhc" style="display:"> </td>
<td bgcolor="#990000" id="eyhc" style="display:"> </td>
<td bgcolor="#990000" id="eyhc" style="display:"> </td>
<td bgcolor="#990000" id="eyhc" style="display:"> </td>
<td bgcolor="#990000" id="eyhc" style="display:"> </td>
<td bgcolor="#990000" id="eyhc" style="display:"> </td>
</tr>
</table>