87,907
社区成员
发帖
与我相关
我的任务
分享
var highlightcolor='#d5f4fe';
var clickcolor='#51b2f6';
function changeto() {
source = event.srcElement;
if (source.tagName == "TR" || source.tagName == "TABLE")
return;
while (source && source.tagName != "TD")
source = source.parentElement;
if (source) source = source.parentElement;
if (source && source.children) cs = source.children;//source.id != "nc" &&
if ("undefined" != typeof cs && cs[1] && cs[1].style.backgroundColor != highlightcolor && cs[1].style.backgroundColor != clickcolor)
for (i = 0; i < cs.length; i++) {
cs[i].style.backgroundColor = highlightcolor;
}
}
function changeback() {
if ((event.fromElement.contains && event.fromElement.contains(event.toElement))
|| (source && source.contains && source.contains(event.toElement))
|| (source && source.id && source.id == "nc"))
return
if (event.toElement != source && "undefined" != typeof cs && cs[1] && cs[1].style.backgroundColor != clickcolor)
for (i = 0; i < cs.length; i++) {
cs[i].style.backgroundColor = "";
}
}