Ross
eCreations Staff
Posts: 1,768
|
Post by Ross on Nov 7, 2005 11:56:39 GMT
Global FooterWhat this code does is changes a members display name to an image. Just edit/repeat the bit in red for each member <script type="text/javascript"> <!-- /* image as username */ function userImage(user,image) { var img = document.createElement('img'); img.src = image; img.border = '0'; var a = document.getElementsByTagName('a'); for(i=0; i<a.length; i++) { if(a.item(i).href.match(new RegExp('viewprofile&user='+user+'$'))) a.replaceChild(img.cloneNode(true), a.firstChild); } }
userImage('admin','http://host.com/image.gif'); userImage('username','Image URL'); userImage('username','Image URL');
//--> </script>
|
|