you know what gave me a good laugh, (**edited for sanity**)
JavaScript:
//adds 4 to cookie value
function varPlus4(name) {
var val = readVar(name);
val += 4;
setVar(name, val);
}
//adds 8 to cookie value
function varPlus8(name) {
var val = readVar(name);
val += 8;
setVar(name, val);
}
//adds 9 to cookie value
function varPlus9(name) {
var val = readVar(name);
val += 9;
setVar(name, val);
}
wouldn't this cut out his 100's of lines of code?
JavaScript:
function varChange(name, value) {
var val = readVar(name);
val += value; // where -inf < value < inf
setVar(name, val);
}
it's like he's using some generator, but I highly doubt this
also when you mean change colors, did you change the color of the choice before you click? did you use css and addclass or something?