Certainly. I've modified the original switchcontent.js file with the ability to specify a CSS background for either/both the Closed or Open state of the header. Download the attached .js file and replace the original with it. With that done, the old method setColor now accepts 2 more parameters, to be optionally used to specify the CSS background when the header is open and closed, respectively. So you can now do all of the following:
Code:
myexample.setColor('green', 'red')
myexample.setColor('green', 'red', 'url(open.gif)') //Open headers carry a background
myexample.setColor('green', 'red', '', 'url(closed.gif)') //Closed headers carry a background
myexample.setColor('green', 'red', '', 'url(open.gif)', 'url(closed.gif)') //Both open/closed headers carry a background
The valid values for the 3rd and 4th parameter is any valid CSS background declaration, such as 'transparent url(test.gif) no-repeat'.
Bookmarks