Todays Top Posters

Fullmoon

Seasoned Veteran
Joined
Nov 2, 2008
Messages
2,804
Reaction score
11
FP$
299
i am using a code i found on a site (cant remember which)

and ive got a problem right at the bottom of my forum its repeated the link 4 times :/ http://z14.invisionfree.com/Pagan_Lands

heres the code i am using

<script>
//Add Today's Top 10 Posters
//By slayer766 of thecodingzone.com

a=document.getElementsByTagName("div");
for(i=0;i<a.length;i++){
if(a.innerHTML.match(/Today\'s active topics/i)){
a.innerHTML+= "|&nbsp;<a href='"+location.href.split("?")[0]+"?&act=Stats'>Today's Top 10 Posters</a>";
}}
</script>

why is this? is the code wrong?
 
Back
Top Bottom