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+= "| <a href='"+location.href.split("?")[0]+"?&act=Stats'>Today's Top 10 Posters</a>";
}}
</script>
why is this? is the code wrong?
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+= "| <a href='"+location.href.split("?")[0]+"?&act=Stats'>Today's Top 10 Posters</a>";
}}
</script>
why is this? is the code wrong?







