babyewok
03-04-2008, 06:38 PM
I have been playing around with the switch content script: http://www.dynamicdrive.com/dynamicindex17/switchcontent.htm and have managed to make the headers into nice css rollovers. What I need to know is if there is a way to alter the 'open' state of the header other than just change the text colour with Instance.setColor(openheaderColor, closedheaderColor).
Basically, I want the open state to look the same as the hover state (see current css below). Is there some way that I can assign a css class to the open state?
<style type="text/css">
h3 {
padding: 9px 0 9px 5px;
font-size: 14px;
background-image: url(images/portfolio-rollover2.gif);
color: #0b2e71;
cursor:pointer;
font-weight:bold;
margin: 5px 0;
}
h3:hover {
color: #fff;
background-image: url(images/portfolio-rollover2.gif);
background-position: 0 -34px;
}
</style>
I look forward to your suggestions.
Basically, I want the open state to look the same as the hover state (see current css below). Is there some way that I can assign a css class to the open state?
<style type="text/css">
h3 {
padding: 9px 0 9px 5px;
font-size: 14px;
background-image: url(images/portfolio-rollover2.gif);
color: #0b2e71;
cursor:pointer;
font-weight:bold;
margin: 5px 0;
}
h3:hover {
color: #fff;
background-image: url(images/portfolio-rollover2.gif);
background-position: 0 -34px;
}
</style>
I look forward to your suggestions.