Ở tất cả các chỗ thì ko sao nhưng ở khung thống kê thì lỗi này :
Code .js của em đây :
- Code:
function Rankicon(){
x = document.getElementsByTagName('span')
for(y=0;y<x.length;y++){
var oldHTML = x[y].innerHTML;
if ((x[y].style.color=="rgb(255, 0, 0)")||(x[y].style.color=="#ff0000")) {icon = "<img src='http://img835.imageshack.us/img835/6907/adminl.gif'>";x[y].innerHTML = icon + oldHTML;}
if ((x[y].style.color=="rgb(0, 255, 0)")||(x[y].style.color=="00ff00")) {icon = "<img src='http://img19.imageshack.us/img19/5301/modll.gif'>";x[y].innerHTML = icon + oldHTML;}
if ((x[y].style.color=="rgb(0, 0, 255)")||(x[y].style.color=="#0000ff")) {icon = "<img src='http://img853.imageshack.us/img853/9899/smodk.gif'>";x[y].innerHTML = icon + oldHTML;}
if ((x[y].style.color=="rgb(213, 0, 255)")||(x[y].style.color=="#d500ff")) {icon = "<img src='http://img546.imageshack.us/img546/3381/miss1.gif'>";x[y].innerHTML = icon + oldHTML;}
if ((x[y].style.color=="rgb(158, 0, 0)")||(x[y].style.color=="#9e0000")) {icon = "<img src='http://img835.imageshack.us/img835/9268/memberyw.gif'>";x[y].innerHTML = icon + oldHTML;}
if ((x[y].style.color=="rgb(2, 60, 107)")||(x[y].style.color=="#023c6b")) {icon = "<img src='http://img694.imageshack.us/img694/3336/bannedv.gif'>";x[y].innerHTML = icon + oldHTML;}
}
}
Rankicon();
Xin mọi người chỉ cách khắc phục với...