<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style>
body{
font-size:12px;
line-height:21px;
color:#3E352F;
}
ul{
width:200px;
list-style:none;
}
.one{
background:#CDC194;
}
.two{
background:#DDDABF;
}
</style>
<script>
function set(){
var obj=document.getElementsByTagName("li");
var num=obj.length
for(var i=0;i<num;i++){
if(i%2==0){
obj[i].className="one";
}else{
obj[i].className="two";
}
}
}
</script>
</head>
<body onload="set()">
<ul>
<li>1.假字以数十字为基础假字数…</li>
<li>2.假字以数十字为基础假字数…</li>
<li>3.假字以数十字为基础假字数…</li>
<li>4.假字以数十字为基础假字数…</li>
<li>5.假字以数十字为基础假字数…</li>
</ul>
</body>
</html>
用JS的方法使用列表LI制作的隔行换色
用loadMovie调用外部*.swf文件
javascript 伸缩效果
到底要设计多宽的网页?
用Javascript实现表格单元格背景色鼠标响应
DIV+CSS排版中新闻列表的制作方法
SPAN和DIV的区别