16.9.7.4.1 JavaScript code when UseCompositeDropJS=Yes

[DropJS]
function doSection(id){
var but = document.getElementById("bu" + id)
var imop = document.getElementById("io" + id)
var imcl = document.getElementById("ic" + id)
var idiv = document.getElementById(id)
if (idiv.style.display=="none") {
idiv.style.display=""
    if (but != null)
        but.innerHTML="<$DropButtonCloseLabel>"
    if (imop != null)
        imop.style.display="none"
    if (imcl != null)
        imcl.style.display=""
} else {
idiv.style.display="none"
    if (but != null)
        but.innerHTML="<$DropButtonOpenLabel>"
    if (imop != null)
        imop.style.display=""
    if (imcl != null)
        imcl.style.display="none"
}
return false;
}
function noSection(id){
var but = document.getElementById("bu" + id)
var imop = document.getElementById("io" + id)
var imcl = document.getElementById("ic" + id)
var idiv = document.getElementById(id)
if (idiv.style.display=="") {
idiv.style.display="none"
    if (but != null)
        but.innerHTML="<$DropButtonOpenLabel>"
    if (imop != null)
        imop.style.display=""
    if (imcl != null)
        imcl.style.display="none"
}
}

Previous Topic:  16.9.7.4 Inspecting the JavaScript code for drop-down sections

Next Topic:  16.9.7.4.2 JavaScript code when DropLinkType=Icon

Parent Topic:  16.9.7.4 Inspecting the JavaScript code for drop-down sections

Sibling Topics:

16.9.7.4.2 JavaScript code when DropLinkType=Icon

16.9.7.4.3 JavaScript code when DropLinkType=Button

16.9.7.4.4 JavaScript code when DropLinkType=Text

Table of ContentsIndex