|
Well, first things first, statName isn't a list. It's a singular variable. Thus, in this case you're constantly overriding the value of "statName" to whatever is the next value given.
|
|
|
|
|
Well i had to edit my last post due to errors sorry Chris for deleting it i should have modified it anyways heres another one i made hope i get things right........ /*The Code starts here you can edit these variables change ONLY the names you'll edit more later*/ statName ="Level" statName ="Strength" statName ="Defense" statName ="Magic" { 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 ) ) ) ); } } } //as explained edit this parts statName( "Level" , "4" ); statName( "Strength" , "2" ); statName( "Defense" , "3" ); statName( "Magic" , "7" ); this is not yet my final modification of it i might change it later
Last Edit: Jan 15, 2008 11:55:31 GMT by Jay
|
Click here to feed me a fruit! Get your own at Dinomon!
|
|
|
|