If you want to variations in your color, you can do follow instruction below:
Edit file rainbow.js:
find Line 44:
Code:
function nickmausac(classname){
var txtValue = "";
var b = getElementsByClassName(classname);
for ( var i = 0; i < b.length; i++ ) {
txtValue = colorText(b[i].innerHTML,1);
b[i].innerHTML = txtValue;
}
}
Change :
Code:
txtValue = colorText(b[i].innerHTML,1);
To (1 => i):
Code:
txtValue = colorText(b[i].innerHTML,i);
Result:
Code:
function nickmausac(classname){
var txtValue = "";
var b = getElementsByClassName(classname);
for ( var i = 0; i < b.length; i++ ) {
txtValue = colorText(b[i].innerHTML,i);
b[i].innerHTML = txtValue;
}
}