【需求】
如果大家登录过
我傲:http://www.woall.com
新浪博客等
就会发现可以点击栏目标题,就会发现栏目可以展开和收起,非常好用!其实这个功能实现起来很简单.重点就是要找到要隐藏的Table行,对它的display属性进行控制.

强烈建议大家登录:http://www.woall.com亲身体验一下!

【另】帖子里网址怎么加链接啊???


【源码】使用方法:把文件考下来,保存为htm类型的文件即可!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script language="javascript">
<!--
 function AXzhz(hideme)
 {
  var AX=document.all(hideme); //声明一个变量
  AX.style.display=AX.style.display=="none"?"":"none"; //判断是否隐藏
 }
//-->
</script>
</head>

<body>
<table width="200" border="1">
<!--title是鼠标在上面的时候出现的提示-->
  <tr title="快啊快啊!!" onclick="AXzhz('AX')">
    <td bgcolor="#FF9933">你点我啊!!</td>   
  </tr>
  <tr >AXzhz制作</td>
  </tr>
</table>
</body>
</html>

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
  • 2022-02-11
猜你喜欢
  • 2021-12-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案