?? setbgcolor.js
字號:
function setBgcolor(idname,maxnum,colorstr){
/*----set bgcolor----
idname element name
sid element index
colorstr bgcolor String
*/
var thisObj = document.getElementById(idname);
var arrName = idname.split("_");
var theid;
try{
var ts=arrName[0];
for(i=0;i<maxnum;i++){
theid = document.getElementById(arrName[0] +"_"+ i);
theid.style.backgroundColor="";
}
thisObj.style.backgroundColor=colorstr;
}catch(Exception){
thisObj.style.backgroundColor=colorstr;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -