Welcome Guest [Log In] [Register]
Add Reply
dddd
Topic Started: May 18 2008, 07:19 PM (105 Views)
Test69
Administrator
dddd
Offline Profile Quote Post Goto Top
 
Test69
Administrator
Testing uh idk what
Offline Profile Quote Post Goto Top
 
Test69
Administrator
<script>
/*************************************************************************************
Complete Money, Word Count, Character count for each post by Viral of http://www.zetaresources.comNot to be modified or redistributed without author's permission*************************************************************************************/
cash="on";
characters="on";
countwords="on";
money=["€","1.26","decimal"];
dl=document.getElementsByTagName('dl');
posts=[];d=0
for(i=0;i<dl.length;i++){
if(dl.className=="user_info"){
dt=dl.getElementsByTagName('dt');
for(c=0;c<dt.length;c++){
if(dt[c].innerHTML=="Posts:"){
posts[d]=parseInt(dt[c].nextSibling.innerHTML);
postlength=dt[c].parentNode.parentNode.parentNode.getElementsByTagName('td');
usernames=document.getElementsByTagName('td');
for(g=0;g<postlength.length;g++){
if(postlength[g].className=="c_post"){
lol=postlength[g].innerHTML.length-34;
words=postlength[g].innerHTML.split(' ').length;
if(cash=="on" && money[2]=="decimal"){money[1]=parseFloat(money[1]);dl.innerHTML+="<dt>Money:</dt><dd>"+money[0]+(posts[d]*money[1])+"</dd>";}
else if(cash=="on" && money[2]=="integer"){money[1]=parseInt(money[1]);dl.innerHTML+="<dt>Money:</dt><dd>"+money[0]+(posts[d]*money[1])+"</dd>";}
if(characters=="on"){dl.innerHTML+="<dt>Post Length:</dt><dd>"+lol+"</dd>";}
if(countwords=="on"){dl.innerHTML+="<dt>Amount of Words:</dt><dd>"+words+"</dd>";}
}}
d++;
}}}}
</script>
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Announcements & News · Next Topic »
Add Reply


Copyright © 2008
Ambrosia-Realm.net