
Originally Posted by
brian.goodman
1. I see that the indicator has a span class="ind". Is that class name essential to the operation of the script?
No, it is used only to style the indicators. I used:
Code:
.ind {
font-family:monospace;
font-weight:bold;
font-size:130%;
color:red;
}
To get a nice look.
2. If I leave out the span, will the script operate as previously, without the +/- indicator?
Not exactly, I used the span tags with a class of ind just to have something to style. The thing that makes the script execute the indicator behaviors is having two elements, one with the id of id_name0 and another with the id of id_name1, where id_name is the the DIV_id name of the collapsible division instance and the id of its content area. You will notice that on the demo page included in my archive that you downloaded, the third collapsible division has no fish0 and fish1 elements. As a result, there is no indicator behavior for that instance. The DIV_id0 and DIV_id1 elements can be anything, images if you like, for example.
Bookmarks