求在网页中嵌入功能性列表的代码
来源:百度知道 编辑:UC知道 时间:2024/06/04 14:22:41
不懂找我。给你个实例:
<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=