gosgonue
05-01-2010, 02:04 PM
I'm not honestly sure if this is the right section of the forums for this,but anyway...I was wondering if someone could help me with a layout problem I've been having.I'm using a code that's supposed to create a button that when clicked,will change the background color of a specific DivLayer from white to black and back again.Well I got that part to work,as you can see here:
My Test Page (http://slashgrizzly.webs.com/test.html)
What I can't seem to figure out is how to get that same button to change to color of the text when it changes the color of the background.What I want is to have the layer start out with a white background with black font,but when the button gets clicked,they can change the layer background to black with white text.Can anyone help me out?I tried to google it,but I don't honestly know what I'm searching for.
My Test Page (http://slashgrizzly.webs.com/test.html)
What I can't seem to figure out is how to get that same button to change to color of the text when it changes the color of the background.What I want is to have the layer start out with a white background with black font,but when the button gets clicked,they can change the layer background to black with white text.Can anyone help me out?I tried to google it,but I don't honestly know what I'm searching for.