Dashboard Area section - toggle background to show on/off

New to dashboards. I searched and found some scripts but I am wondering if there is an easy way to do this. I have a section for each area and clicking it toggles all the lights. I just want the section background to reflect that so you can see if the lights (as a whole) are on/off.