vForums Support > Programming & Coding :: Database of Codes/Hacks/Mods :: > Random Custom Title

Random Custom Title - Posted By Michael (wrighty) on 23rd Mar 08 at 1:13am
<script>
/*Random Custom Title
Coded By Wrighty
No Ripping, Reposting or Claiming*/

var ct = {

    list: ["I'm God","Rawr","Fear Me"],

    d: get('td','tag'),
    do: function(){
        var x = Math.floor(Math.random()*ct.list.length);
        for(i=0;i < this.d.length;i++){
            if(this.d[i].width=='20%'){
                this.d[i].innerHTML = this.d[i].innerHTML.replace(/\[w_ran\]/,this.list[x]);
            }
        }
    }
};
ct.do();
</script>


Global Footer


Edit:     list: ["I'm God","Rawr","Fear Me"],

Simply add more things in ... eg:     list: ["I'm God","Rawr","Fear Me","Watch me eat you"],

Also, to add this to your profile, make your custom title: [w_ran]. Also, that can be done for anyone else that wants the same random custom title! {Smile}