2. 写JS方法:
"" <script> <BR>function changeCss(obj){ <BR>var alist = document.getElementsByTagName("a"); <BR>for(var i =0;i < alist.Length;i++){ <BR>alist[i].style.color = "#000"; //给所有a标签赋原色 <BR>} <BR>obj.style.color = "#f00"; //令当前标签高亮 <BR>} <BR>//当然也可以用Jquery的$("a").removeCss() 和addCss()来实现 <BR></script>