<!DOCTYPE HTML>
<html>
<head>
<title></title>
<script>
function rainbowUser() {
var username = "ROYGBPROYGBPROYGBPROYGBP";
var rainbow = new Array('red', 'orange', 'yellow', 'green', 'blue', 'purple');
var htmlString = "";
var color;
for (var i = 0; i < username.length; i++) {
color = rainbow[(i % rainbow.length)];
htmlString += '<span style="color:' + color + ';">' +
username.substring(i, i+1) +
'</span>';
}
document.getElementById('user').innerHTML = htmlString;
}
</script>
</head>
<body onload="rainbowUser();">
<div id="user"></div>
</body>
</html>