1.JSʵÀý±¦¿â
2.ÍøÕ¾½¨ÉèÓëÐĵÃ
3.ÎÞÓǽű¾ÂÛ̳
4.ÂÒÆß°ËÔãÁôÑÔ°å
1.½«ÏÂÃæµÄ´úÂ븴ÖƵ½ <head> ÄÚ
<script language="JavaScript1.2"> /* Highlight Table Cells Script- Last updated: 99/01/21 © Dynamic Drive (www.dynamicdrive.com) For full source code, installation instructions, 100's more DHTML scripts, and Terms Of Use, visit dynamicdrive.com */ 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>
2.ÔÚ<table>±êÇ©ÖмÓÈë
onMouseover="changeto('lightgreen')" onMouseout="changeback('white')"
changto("Êó±ê·ÅÉϱí¸ñʱµÄÑÕÉ«") changeback("Êó±êÀ뿪ºóµÄÑÕÉ«")