Matt
Graphics Admin
Great admin or greatest admin?
Posts: 4,891
|
Post by Matt on Apr 20, 2006 18:53:46 GMT -5
If a user does not have an avatar selected in his/her profile, it will display this default avatar. Edit when indicated.
Created By: Wonder
Global Footer
<script> //Auto Default Avatar v1.0
//Copyright 9-21-2005 ~Wonder //May be reposted anywhere as long as this header remains in tact
//Put in Global Footer
//Enter URL to default avatar defaultAvatar="http://www.proboards8.com/v4images/avatars/bunny.gif";
if(location.href.match(/action=(display|goto|viewprofile|pmview|recent)/)) { var td=document.getElementsByTagName("td"); for(i=0;i<td.length;i++) { if(td[i].width=="20%" && td[i].className.match(/windowbg/) && !td[i].innerHTML.match(/\[avatar\]/)) { temp=td[i].getElementsByTagName("center"); if(temp.length>0) { temp=temp[0]; temp.innerHTML="<IMG SRC=\""+defaultAvatar+"\" ALT=\"[avatar]\" BORDER=\"0\">"+temp.innerHTML; } } } } </script>
|
|
|
Post by lion on Feb 11, 2008 21:02:13 GMT -5
thank you for this code
|
|