Please login or register. Welcome to the Studio, guest!


Quick Links:


newBookmarkLockedFalling

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
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.

Jay

Jay  Avatar
Random Avy Refresh To See Another One

50%

***
Dedicated Member

171


December 2007
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!

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
studiozero.proboards44.com/index.cgi?board=codes&action=display&thread=1128058307

Only warning. Do not rip or you will be banned. You've received a warning for this. I can recognize CJ's coding from a mile away. Not to mention your edits wouldn't even work.

- Locked for affiliation with ripping -

newBookmarkLockedFalling