inherit
52328
0
Mar 13, 2009 16:15:58 GMT -8
CrAzY_J
871
July 2005
crazyj2
|
Post by CrAzY_J on Nov 13, 2005 19:48:37 GMT -8
This code will add RPG stats to your mini profile to your likings. So you can add anything you want instead of looking through all those small RPG codes and finally finding one that you like.
Global Footers <script type="text/javascript"> /*Simplest RPG created by CrAzY_J This copyright must stay intact at all times*/
function RpG(name,multi) { var TD = document.getElementsByTagName( "TD" ); for( t = 0 ; t<TD.length ; t ++) { if( TD[t].width == "20%" && TD[t].innerHTML.match(/Posts:/)) { var Posts = parseInt( TD[t].innerHTML.split(/Posts: /)[1].split(/<\//)[0].replace(/,/g,'') ); TD[t].appendChild ( document.createElement( "br" )); TD[t].appendChild ( document.createTextNode ( name + ": " + Math.floor ( Posts*parseInt ( multi ) ) ) ); } } }
RpG( "Money" , "4" ); RpG( "HP" , "2" ); </script>
RED = The stat name you would like to add. BLUE = With how many times the post should be multiplied to get the Stat value.
If you want to add more stats, keep adding this line with the others:
RpG("STAT NAME","NUMBER")
|
|