您的位置:首页 > 其它

一个简单的收缩菜单

2004-11-28 15:24 585 查看
<script>
function showhide(which){
 if( which.style.display=="none"){
  which.style.display=""
 }else{
  which.style.display="none"
 }
}
</script>
<table width="80%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td bgcolor="#666666" onclick="showhide(content1)" style="color:white;cursor:hand">open1</td>
  </tr>
  <tr id="content1" style="display:none">
    <td>content1</td>
  </tr>
  <tr>
    <td bgcolor="#999999" onclick="showhide(content2)" style="color:white;cursor:hand">open2</td>
  </tr>
  <tr id="content2" style="display:none">
    <td>content2</td>
  </tr>
</table>
open1
content1
open2
content2
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  function border table