求在网页中嵌入功能性列表的代码

来源:百度知道 编辑:UC知道 时间:2024/06/04 14:22:41
如图,就是点击1 2 3 ,下面会出现相应的栏目,然后栏目里面的东西我想插入我自己的栏目列表,需要栏目中的列表可以更新。求一段代码来实现这个功能,或者给出一个有相应功能的程序也行,急用。高手给出代码如果实验能用,则追加100分。

不懂找我。给你个实例:
<style>
table{ font-size:9pt}
.h1{ background:#d3d6d9;border-top:1px outset #d3d6d9;border-left:1px outset #d3d6d9;border-right:1px outset #d3d6d9;border-bottom:0px }
.h2{ background:menu;border:1px outset menu }
.h3{ background:white;border-bottom:1px outset #d3d6d9}
#main{ background:#d3d6d9;border-left:1px outset #d3d6d9;border-right:1px outset #d3d6d9;border-bottom:1px outset #d3d6d9}
</style>
<script>
function sel(n){
var ye=document.all['handle'];

for(i=0;i<ye.cells.length-1;i++){
ye.cells[i].className="h2";
ye.cells[n].className="h1";
}

var yexj00=document.all['main'];

for(i=0;i<yexj00.tBodies.length;i++){
yexj00.tBodies[i].style.display='none';
yexj00.tBodies[n].style.display='block';
}
}
</script>
<table id="handle" cellspacing=0 cellpadding=