7.9.7.4 Inspecting the JavaScript code for drop-down sections
The JavaScript functions included in macro $DropJS differ according to whether UseCompositeDropJS=Yes or No; and if No, according to the link type.
§7.9.7.4.1 JavaScript code when UseCompositeDropJS=Yes
§7.9.7.4.2 JavaScript code when DropLinkType=Icon
§7.9.7.4.3 JavaScript code when DropLinkType=Button
§7.9.7.4.4 JavaScript code when DropLinkType=Text
§7.9.4.1 Specifying the type of link for drop-down sections.
7.9.7.4.1 JavaScript code when UseCompositeDropJS=Yes
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") {
but.innerHTML="<$DropButtonCloseLabel>"
but.innerHTML="<$DropButtonOpenLabel>"
var but = document.getElementById("bu" + id)
var imop = document.getElementById("io" + id)
var imcl = document.getElementById("ic" + id)
var idiv = document.getElementById(id)
but.innerHTML="<$DropButtonOpenLabel>"
7.9.7.4.2 JavaScript code when DropLinkType=Icon
var imop = document.getElementById("io" + id)
var imcl = document.getElementById("ic" + id)
var idiv = document.getElementById(id)
if (idiv.style.display=="none") {
var imop = document.getElementById("io" + id)
var imcl = document.getElementById("ic" + id)
var idiv = document.getElementById(id)
7.9.7.4.3 JavaScript code when DropLinkType=Button
var but = document.getElementById("bu" + id)
var idiv = document.getElementById(id)
if (idiv.style.display=="none") {
but.innerHTML="<$DropButtonCloseLabel>"
but.innerHTML="<$DropButtonOpenLabel>"
var but = document.getElementById("bu" + id)
var idiv = document.getElementById(id)
but.innerHTML="<$DropButtonOpenLabel>"
7.9.7.4.4 JavaScript code when DropLinkType=Text
var idiv = document.getElementById(id)
if (idiv.style.display=="none") {
var idiv = document.getElementById(id)
> 7 Producing on-line Help > 7.9 Including expandable sections in Help topics > 7.9.7 Deploying JavaScript code for drop-down sections > 7.9.7.4 Inspecting the JavaScript code for drop-down sections