初步判断是obj.style.backgroundcolor在ff下返回的是rgb(xxx,xxx,xxx)的缘故。偶是新手,代码很菜,高手勿笑啊
a.blue:link,a.blue:visited{
font-size: 12px;
color: #69c;
text-decoration: none;
}
a.blue:hover{
background: #69c;
color: #fff;
}
function finsert(a,b){
oinput = document.getelementbyid(a);
oitm = b;
if(b.style.backgroundcolor == "#69c"){
sreplace = oitm.innerhtml.concat(" ");
oinput.value = oinput.value.replace(sreplace,"");
b.style.backgroundcolor = "";
b.style.color = "";
}
else{
oinput.value = oinput.value.concat(oitm.innerhtml);
oinput.value = oinput.value.concat(" ");
b.style.backgroundcolor = "#69c";
b.style.color = "#fff";
}
}
关键字 关键字2 关键字3
[ctrl+a 全选 注:如需引入外部js需刷新才能执行]