|
Post by deadlyassassin on Feb 16, 2006 9:58:55 GMT
The following will fill the all important void in the avatar space for members who do not have avatars. Preview: Click HereGlobal Footers<script type="text/javascript"> <!-- /* Default Avatar Image By {XF}Äs$@§sîñ™, www.xf-clan.net */
// Edit Avatar Image var dAvatar = "URL TO IMAGE";
var td = document.getElementsByTagName('td'); if (location.href.match(/on=(displ|search2|viewpr|pmv|(user)?rece|cal\w+iew)/i)) { for (i=0; i<td.length; i++) { if (td.item(i).width == "20%" && td.item(i).align == "left" && td.item(i).className.match(/^windowb(g|g2)$/i)) { if (td.item(i).innerHTML.match(/(<br\s?\/?>){2}<center>(<br\s?\/?>){2}/i)) { var dImg = document.createElement('img'); dImg.setAttribute("src", dAvatar); dImg.setAttribute("border", "0"); dImg.setAttribute("alt", "[avatar]"); var cTarget = td.item(i).getElementsByTagName('center').item(0); cTarget.replaceChild(dImg, cTarget.firstChild); } } } } // --> </script>
|
|
Firefly
New Member
The fox queen
Posts: 10
|
Post by Firefly on Mar 16, 2008 13:07:58 GMT
its not working for me D=
I posted it in th global footers as you said.
|
|