从淘宝下的一个分栏目功能,请高手过来看看
http://www.wodegongju.com/bbs/viewthread.php?tid=179&fpage=1
也可以到这里看一下,上面有图片说明:
下载下来的功能是第一个栏目下面包括了之后几个栏目的所有内容,我想要的是第一个栏目中只显示第一个栏目所在的内容,依此类推。
几个文件的代码如下:
default.html
<LINK href= "20070416.css " type=text/css rel=stylesheet>
<LINK href= "20070422.css " type=text/css rel=stylesheet>
<body >
<div id= "Content ">
<script type= "text/javascript ">
var TabNames = new Array( "宝贝详情 ", "其他信息 ", "aaaa ");
var TabIds = new Array( "DetailInfo ", "MemoInfo ", "BidRecord ", "GuestBook ");
</script>
<script src= "taobao.js " language= "javascript " type= "text/javascript "> </script>
<div id= "InfoSelectorTarget "> </div>
<div id= "DetailInfo ">
<h2 class= "Title "> 宝贝详情 </h2>
</div>
<div id= "MemoInfo ">
<h2 class= "Title "> 其他信息 </h2>
</div>
<div id= "BidRecord ">
<h2 class= "Title "> 555 </h2>
</div>
<script language= "javascript " type= "text/javascript ">
initInfoSelector();
</script>
</div>
</body>
===
taobao.js
function initInfoSelec