Triad
New Member
Posts: 33
|
Post by Triad on Nov 16, 2008 15:48:19 GMT -5
This code changes a users display name to an image of your choice. Put the user's user name in the first set of quotes, and the image URL in the second set of quotes. Be sure to increase the red number inside of the [] by one each time. Global Footers <script type="text/javascript"><!-- /* * Image as Display Name * Open Source */
var _name = new Array(); _name[0] = ["admin", "s3.images.proboards.com/menu/admin.gif"]; _name[1] = ["test", "s3.images.proboards.com/menu/help.gif"];
for(var a = document.getElementsByTagName("a"), x=0; x<a.length; x++){ if(a[x].className && a[x].className.match(/group/i)){ for(b=0; b<_name.length; b++){ if(_name[0] == a[x].href.split("=")[2]){ var _img = document.createElement("img"); _img.src = _name[1]; _img.border = 0; _img.alt = a[x].href.split("=")[2]; _img.title = a[x].href.split("=")[2]; a[x].parentNode.replaceChild(_img, a[x]); break; } } } } //--></script>
|
|