russellr
Elite Level 1
[M:5000]
rCs?
Posts: 525
|
Post by russellr on Sept 30, 2010 18:30:47 GMT
<script type="text/javascript"> //Simple RPG v1 //Russell var name1 = 'Money:'; var name2 = 'Speed:'; var name3 = 'Agilty:'; var name4 = 'Fighting:';
var TD=document.getElementsByTagName('td'); for(t=0;t<TD.length;t++){ if(TD[t].width=="20%" && TD[t].innerHTML.match(/Posts/i)){ var PostAmount=TD[t].innerHTML.split("Posts: ")[1] var nam1=parseInt(PostAmount)*1 // change 1 to the number of times you times the posts to get money var nam2=parseInt(PostAmount)*5 // change 5 to the number of times you times the posts to get speed var nam3=parseInt(PostAmount)*3 // change 3 to the number of times you times the posts to get agility var nam4=parseInt(PostAmount)*2 // change 2 to the number of times you times the posts to get fighting
TD[t].innerHTML+="<br /><u>RPG Stats</u><br />"+name1+" "+nam1+"<br />"+name2+" "+nam2+"<br />"+name3+" "+nam3+"<br />"+name4+" "+nam4+"<br />"; }}
</script>
|
|