标签:script length ntb rip == on() doc style round
<script language="javascript" type="text/javascript">
window.onload = function()
{
var tbl = document.getElementById("tbl");
rows = tbl.getElementsByTagName("tr");
for (i = 0; i < rows.length; i++)
{
/* var j = parseInt(i / 3); */
if (i % 2 == 0)
rows[i].style.backgroundColor = "pink";
/* else
rows[i].style.backgroundColor = "#0f0"; */
}
}
</script>
</head>
标签:script length ntb rip == on() doc style round
原文地址:http://www.cnblogs.com/zhangZhangWorkHard/p/7613188.html