Ah ok. Sometimes a screenshot is necessary to get the point across. To do what the later screenshot shows, try replacing function:
Code:
switchcontent.prototype.toggledisplay=function(header){
"
"
}
with the below version instead:
Code:
switchcontent.prototype.toggledisplay=function(header){
var innercontent=document.getElementById(header.id.replace("-title", "")) //Reference content container for this header
this.sweepToggle("contract")
this.expandcontent(header)
if (this.collapsePrev)
this.prevHeader=header //Set current expanded content as the next "Previous Content"
}
Bookmarks