inherit
25709
0
Jun 12, 2009 20:55:02 GMT -8
hpmad
1,017
June 2004
hpmad7
|
Post by hpmad on Mar 21, 2006 14:41:40 GMT -8
Description:Changes the color of the member's name according to their rank (e.g. new member, junior member, etc.). Only works on profile view. Edit the red parts. Global Footer<script type="text/javascript"> <!--
/* Different Colors for Member Ranks by hpmad Do not repost or claim without permission from creator For more codes like this one go to: talkpark.proboards.com */
/* ['Rank Name','Rank Color'] There is no comma on the last line! */ var ranks = [ ['New Member','000000'], ['Junior Member','FF0000'], ['Full Member','0000FF'], ['Senior Member','FF00FF'], ['God','00FF00'] ];
var td = document.getElementsByTagName('td'); var lc = /(action=(viewprofile|display|pmview|search2|recent|calendarview|userrecentposts)|index.cgi$)/i; var ck = /<\/a><\/b><br\s?\/?>(.+?(<br\s?\/?><img.+?>)?)<br\s?\/?>/i; if(location.href.match(lc)){ for(i=0;i<td.length;i++){ if(td.className.match(/windowbg/) && td.width=='20%' && td.innerHTML.match(ck)){ var bb = td.getElementsByTagName('b')[0]; for(t=0;t<ranks.length;t++){ if(RegExp.$1.match(new RegExp(ranks[t][0],'i')) && bb){ var dName = bb.innerHTML.match(/>(.+?)<\/a>/i) ? RegExp.$1:false; bb.innerHTML = dName ? bb.innerHTML.replace(/">.+?<\/a>/i,'"><font color="'+ranks[t][1]+'">'+dName+'</font></a>'):bb.innerHTML; } } } } }
//--> </script>
|
|