<script language="JavaScript1.2"> function changeto(highlightcolor){ source=event.srcElement if (source.tagName=="TR"||source.tagName=="TABLE") return while(source.tagName!="TD") source=source.parentElement if (source.style.backgroundColor!=highlightcolor&&source.id!="ignore") source.style.backgroundColor=highlightcolor } function changeback(originalcolor){ if (event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="ignore") return if (event.toElement!=source) source.style.backgroundColor=originalcolor } </script> <table onMouseOver="changeto('white')" onMouseOut="changeback('#999999')">
推荐阅读
带Checkbox的列表框
带Checkbox的列表框 - 51windows.Net
body,td{font-size:12px;color:#000000;}
.checkbox{width:15px;height:15px;}
.cked{
margin:1px;padding:2px;width:100%;display:block;background-c>>>详细阅读
本文标题:srcElement表格样式
地址:http://www.17bianji.com/kaifa2/JS/31595.html
1/2 1