Lines Matching refs:colors
594 var colors = str.trim().replace(/ +(?= )/g, '').split(/(?!\(.*)\s(?![^(]*?\))/g);
595 if (colors.length > 0 && colors[0] != '') {
597 elem.style.backgroundColor = colors[0];
600 if (colors.length > 1) {
602 elem.style.color = colors[1];
606 if (colors.length > 2) {
608 elem.style.color = colors[2];
612 if (colors.length > 3) {
615 elem.style.color = colors[3];
619 elem.style.color = colors[3];
620 elem.onmouseover = function () { this.style.color = (colors.length > 4 ? colors[4] : 'initial'); };
621 elem.onmouseout = function () { this.style.color = colors[3]; };