Posted on 2008-08-06 16:55 
七郎归来 阅读(531) 
评论(0)  编辑  收藏  
			 
			
		 
		<script>
function showPage(field,sDivId){ 
  var oDiv=document.getElementById(sDivId); 
  if(oDiv.style.display==""){ 
    oDiv.style.display="none";    
    field.src="butCollapseBlue.gif";  
  }else{ 
    oDiv.style.display="";
    field.src="butExpandBlue.gif";
  } 
}
 </script>
<table>
  <IMG name="Contextdelegate" src="butExpandBlue.gif" onclick="showPage(this,'divContent1')">〖<strong>评级信息</strong>〗
  <div id="divContent1">  
 <TR>
    <td>
  <input type="text">
    </td>
     <td>
  <input type="text">
    </td>
 </tr>
 <TR>
    <td>
  <input type="text">
    </td>
    <td>
  <input type="text">
    </td>
 </tr> 
  </div>
</table>
注意:table和div 无法交叉,想在table内隐藏div不行  将<div>换成<tbody>即可