讓表格閃起來的技巧
現在做的網頁都是越做越花哨的,大家常常會看到關于文字閃爍的 javascript 代碼,可是能否讓表格也閃起來? 答案是肯定的。你看:
<table border="0" width="280" id="flashtable" style="border:5px solid yellow"> <tr> <td>表格內容</td> </tr>
<script language="JavaScript"> <!-- function flashit() { if (!document.all) return if (flashtable.style.borderColor=="yellow") flashtable.style.borderColor="lime" else flashtable.style.borderColor="yellow" } setInterval("flashit()", 500) --> </script>
|