LiqwidGrant
09-05-2005, 05:25 AM
Is it possible to change a CSS property of an entire class on the fly?
I am trying to create a color changing script for www.homesteadartclub.org (I know it's messy, it's just a proof right now). The problem I'm having is that I am going to need to change the color of the navigation links and it doesn't seem efficient to do it the way I am doing it...Which, is probably not very efficient at all.
Currently I have a script that changes the backgroundColor property of all the boxes / text areas (if applicable) onClick.
I don't want to have to add an additional like for each one of the navigation links, so I'd like to be able to asign a class to the links and change the color property of the class.
Any suggestions?
Thanks!
-Grant
I am trying to create a color changing script for www.homesteadartclub.org (I know it's messy, it's just a proof right now). The problem I'm having is that I am going to need to change the color of the navigation links and it doesn't seem efficient to do it the way I am doing it...Which, is probably not very efficient at all.
Currently I have a script that changes the backgroundColor property of all the boxes / text areas (if applicable) onClick.
I don't want to have to add an additional like for each one of the navigation links, so I'd like to be able to asign a class to the links and change the color property of the class.
Any suggestions?
Thanks!
-Grant