.MenuOptions{
패딩:2px;
大家好呀
|
很容易实现的效果
|
喜欢的就拿去用吧
|
这个不允许加亮
|
커서:손
색상:#000000 <script> <BR>function Menu_Init(obj){ <BR> var tds = obj.getElementsByTagName("td"); <BR> for (var i = 0; i < tds.length; i++) <BR> { <BR> if (tds[i].className == "MenuOptions") <BR> { <BR> tds[i].onmouseover = switch_bg; <BR> tds[i].onmouseout = switch_bg; <BR> } <BR> } <BR>} <BR>function switch_bg(e){ <BR> if (this.className=="MenuOptions_click") return <BR> this.className = (this.className == "MenuOptions") ? "MenuOptions_hilite" : "MenuOptions"; <BR> } <BR></script>.MenuOptions_hilite{ <script>Menu_Init(MenuTools)</script> 패딩:1px; 테두리:outset 1px #669999; 커서:손 색상:#000000
하이라이트는 허용되지 않습니다 tr> |