View Full Version : Javascript color changing code...How is this done?

09-02-2011, 09:17 PM
Hey guys,
I have been trying to get better at my javascript as of late and there is this one particular color fading technique I have found that I am having trouble dissecting.

The following code appears to be how they are making a rollover go from a dark gray to a subtle light gray with a nice fade but I can't exactly tell whats going on from the code. Is it just telling it to add a rgb point in so many seconds?

Any professional help would be greatly appreciated.


Old Pedant
09-02-2011, 10:09 PM
Part of the code is missing.

The starting point can't possibly be


Syntax error right at that point.