作家
登录
    用户名:  密码:   

srcElement表格样式

作者: 来源:www.28hudong.com 2013-03-30 04:05:06 阅读51次 我要评论

<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

21

关键词: 探索发现

乐购科技部分新闻及文章转载自互联网,供读者交流和学习,若有涉及作者版权等问题请及时与我们联系,以便更正、删除或按规定办理。感谢所有提供资讯的网站,欢迎各类媒体与乐购科技进行文章共享合作。

网友点评
自媒体专栏

评论

51

热度

精彩导读
栏目ID=71的表不存在(操作类型=0)