PDA

View Full Version : Fading message scroller FF1+ IE5+ Opr7+ - HELP NEEDED



Xposure
03-01-2006, 11:46 AM
I have a black Background.

How do I change the text to White?

it can be viewed here: http://xposuregroup.co.uk/html/about_us.html

jscheuer1
03-01-2006, 03:37 PM
Where you have this:


var startcolor= new Array(255,255,255); // start color (whie, green, white)
var endcolor=new Array(0,0,0); // end color (white, green, white)

The green parts are just comments, they probably and should read in the demo thus:


// start color (red, green, blue)
// end color (red, green, blue)

They are just instructions, telling you what the red values do. In this case that is start out with red, green and blue at 255 (this results in a starting color of white) and end with a all three at zero (this is the color black). To start black and fade to white, just reverse them:


var startcolor= new Array(0,0,0); // start color (red, green, blue)
var endcolor=new Array(255,255,255); // end color (red, green, blue)