#00AF33
14306
0
1
Sept 8, 2023 8:54:17 GMT -8
Jordan
What is truth?
11,838
October 2003
jab2
|
Post by Jordan on Oct 1, 2008 14:49:18 GMT -8
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 * Created by Triad * support.proboards.com */
var _name = new Array(); _name[0] = ["admin", "image_url"]; _name[1] = ["test", "image_url"];
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]; var _a = a[x].cloneNode(true); _a.replaceChild(_img, _a.firstChild); a[x].parentNode.replaceChild(_a, a[x]); break; } } } } //--></script>
|
|