?? changecolor.js
字號:
var bColor='#f5f5f5'; //定義顏色,為單擊時顯示的顏色F9F9F9
var fColor='#fafafa'; //定義顏色,為單擊時字體所顯示的顏色
function tdOver(td)
{
if(td.style.backgroundColor!=bColor)//當這一列的背景顏色不為以上定義的顏色時
{
td.setAttribute('DtBg',td.style.backgroundColor);//得到這列的背景顏色并且設置為DtBg
td.setAttribute('DtCo',td.style.color);//得到這列的字體顏色并且設置為DtCo
td.style.color='Blue';//設置鼠標移上時列里的字體顏色為#ff99ff
td.style.cursor='hand';//設置鼠標的形狀為手狀
td.style.backgroundColor='#F9F9F9';//設置該列的背景顏色為#F9F9F9
}
}
function tdOut(td)
{
if(td.style.backgroundColor!=bColor)//當這一列的背景顏色不為以上定義的顏色時
{
td.style.backgroundColor=td.getAttribute('DtBg');//設置該列的背景顏色為以上得到的顏色,即DtBg
td.style.color=td.getAttribute('DtCo');//設置該列的背景顏色為以上得到的顏色,即DtCo
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -