Menu
Hi:
I have this function which changes the color of text, according to the text class:
[FONT=Courier New]function colorLine(clss) {
$(‘.’ + clss).animate( {color:’#CD0000′}, 1200 );
}
[/FONT]
The function is used as part of a four-way switch function, and this switch function itself is repeated.
I’m looking for a way to have the viewer–before the switch function is called–to choose from several colors, eg yellow, blue, green, black, by clicking on appropriate links.
If I add another variable for the color, still not sure how I’d access that?
Any suggestions welcome.