1
godo OP js 代码
<script type="text/javascript"> function setContentTab(name, curr, n) { for (i = 1; i <= n; i++) { var menu = document.getElementById(name + i); var cont = document.getElementById("con_" + name + "_" + i); menu.className = i == curr ? "on" : ""; if (i == curr) { cont.style.display = "block"; } else { cont.style.display = "none"; } } } </script> |
2
loading 2014-03-14 20:31:14 +08:00 via iPhone
不如你自学下jQuery吧!不会错的。
|