vForums Support > Programming & Coding :: Database of Codes/Hacks/Mods :: > Coloured Usernames

Coloured Usernames - Posted By Michael (wrighty) on 8th Mar 08 at 1:17pm
<script>
/*Colored Names
Created By Wrighty*/

function name(user, color){
    for(i=0;i<get('a','tag').length;i++){
        if(get('a','tag')[i].className.match(/group/) && get('a','tag')[i].href.match(user)){
            get('a','tag')[i].style.color = color;
        }
    }
}

name('admin','#FF0000');
</script>


To add more colored names simply repeat the following line:

name('admin','#FF0000');

the first part is the username, the second is the colour you want the name to appear.

Global Footer