abbeyvet
05-08-2007, 01:10 AM
1) Script Title: Switch Content
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/switchcontent.htm
3) Describe problem:
In addition to changing the text color in the content header when it is active, I would like to be able to change the background-color.
I have styled the content headers with CSS, as below, so that they appear as tabs:
span.handcursor {
padding:2px 4px;
background:#eeeeee;
border:1px solid #ccc;
margin-right:3px;
}
If I wanted to alter the background to, say, #9999cc when the header was active, how would I go about that?
I am challenged to say the least when it comes to JavaScript, so my attempts to make this happen by adding some stuff to the script have thus far been unsuccessful.
I would welcome any suggestions as to how to make this happen.
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/switchcontent.htm
3) Describe problem:
In addition to changing the text color in the content header when it is active, I would like to be able to change the background-color.
I have styled the content headers with CSS, as below, so that they appear as tabs:
span.handcursor {
padding:2px 4px;
background:#eeeeee;
border:1px solid #ccc;
margin-right:3px;
}
If I wanted to alter the background to, say, #9999cc when the header was active, how would I go about that?
I am challenged to say the least when it comes to JavaScript, so my attempts to make this happen by adding some stuff to the script have thus far been unsuccessful.
I would welcome any suggestions as to how to make this happen.