inherit
13333
0
Mar 19, 2012 20:30:58 GMT -8
hey
4,271
September 2003
hey
|
Post by hey on Oct 13, 2005 17:20:44 GMT -8
Cross Browser: Yes! Global Footer: <script type="text/javascript"> /* Fusion RPG V1.0 Created by hey Do not repost and keep header intact */
//Edit Here var rpgStats=[]; rpgStats[0]=["Attack","4"]; rpgStats[1]=["Defense","2"]; rpgStats[2]=["Hit Points","3"];
//No More Edit Unless You Know What Your Doing var td = document.getElementsByTagName("td"); for(i=0;i<td.length;i++) { var posts = (td.innerHTML.match(/Posts: (.+?)</i)) ? RegExp.$1: ''; posts = posts.replace(",",""); if(td.width=="20%" && td.innerHTML.match(/Posts: /i)){ for(r=0;r<rpgStats.length;r++){ td.innerHTML+=rpgStats[r][0]+': '+parseInt(posts)*rpgStats[r][1]+'<br />'; }}} </script>
Okay, here are the instructions: For this color, put in the name of the RPG Stat you want to add.For this color, put in the number of how much of the stat you want to gain per post.If you want to add a new stat, simply add this line where the other lines are: rpgStats[ #]=[" Stat Name"," Number Gained Per Post"]; For this color, put the next number up from the last one. If you use the given 3 stats, you would just change "#" to a "3".Enjoy.
|
|