I'm doing it as top courts now.
quote:
Originally posted by John Anderton
yeah i guess i could but it looks a lot better that way
Dont you just have to use the string to lower function and then search and capitalise the first letter?
quote:
Originally posted by alexp2_ad
The score is just pulled from http://newsimg.bbc.co.uk/sol/shared/bsp/hi/footba...tml/in_vision1.stm
Yeah i know ... i read the source ... ive been doing this stuff for months now you know
1. Me too!
2. No I didn't know that, how would I?
3. How come you can't do that function yourself then, it was pretty simple??
Just add this function somewhere:
code:
function UnCaps(sString){
for(var j = 0; j <= sString.length - 1; j++){
var thischar = sString.charAt(j);
if(!j==0 && !spacelast){ thischar = thischar.toLowerCase(); }
if(thischar == ' '){ spacelast = true; } else { spacelast = false; }
sString = sString.slice(0,j) + thischar + sString.slice(j+1,sString.length);
}
return sString;
}
Then after line 101 add:
latestscore = UnCaps(latestscore);
Enjoy...