把鼠標移到文字鏈接上看看效果。
樣板之一
樣板之二
樣板之三
安裝:
步驟一 拷貝以下腳本貼在網頁最靠近<body>之下。
<script>
function highlight(which,color){
if (document.all)
which.style.backgroundColor=color
}
</script>
步驟二 把以下代碼放置在您要突顯的文字鏈接的標記內。
onMouseover=highlight(this,'RED') onMouseout="highlight(this,'')"
例如:
把這個鏈接
<a href="mouye.html">點擊這裡</a>
改為:
<a href="mouye.html" onMouseover=highlight(this,'RED') onMouseout="highlight(this,'')">點擊這裡</a>
步驟三 更換顏色(樣板為紅色)以迎合您的品味。