vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Database of Codes/Hacks/Mods :: Multicoloured Names - View Topic
Topic Rating: *****
Printable View
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Multicoloured Names (2nd Apr 08 at 10:25pm UTC)
This will allow you to replace a members displayname with anything you wish.

The purpose that it was written for was for multi-colored names.


<script>
/*Multicoloured Names
Created By Wrighty
Do Not: Rip, Repost or Claim*/

var a = get('a','tag');
function _col(u, x){
    for(i=0;i<a.length;i++){
        if(a[i].href.match(new RegExp('view_profile/user/'+u))){
            a[i].innerHTML = x
        }
    }
}
_col('admin', '<font color=#FF0000>Ad</font><font color=#0000FF>min</font>');
</script>


To color more names simply repeat the line in red. the first part is the username, with the second being the new name of the person. Use HTML <font></font> tags as shown for colouring! {Smile}

Global Footer
ajay
Guest
Re: Multicoloured Names (2nd Apr 08 at 10:53pm UTC)
Wow, that was quick i just asked for it {Tongue Out} . Well thanks wrighty you rock!
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Multicoloured Names (2nd Apr 08 at 10:55pm UTC)
Welcome! {Smile}
 Printable View

All times are GMT+0 :: The current time is 12:10pm
Page generated in 0.7833 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums