troubleshooting Question

Background css color change based on active class

Avatar of pixelscape
pixelscape asked on
17 Comments1 Solution287 ViewsLast Modified:

I want to change background colors like this:

However I don't want to use buttons to change background colors. I want to tie the color change to an active class.

So say I have a slideshow that pulls the following...

<a href=""><img class="one" src="images/slide1.jpg" width="1200" height="690" alt="" rel="images/slide1_thumb.jpg"/></a>
<a href=""><img class="two" src="images/slide2.jpg" width="1200" height="690" alt="" rel="images/slide2_thumb.jpg"/></a>

class=one would be active and trigger appropriate color than class=two would be active and trigger that appropriate color.

I am looking for ideas, not quit sure how to do this. Thanks!
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 17 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 17 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros