Witten
Bainbridge
Nichols
HOME HELP PREFERENCES SEARCHFIGURESTABLES

Opening and closing sections of a table

 1 package document
 2
 3 _pagescriptextra_ {
 4   function hide\_description(elem)
 5   \{
 6         var ecl = document.getElementById(elem+"close");
 7         ecl.style.display = "none";
 8         var eop = document.getElementById(elem+"open");
 9         eop.style.display = "block";
10
11         var ete = document.getElementById(elem+"text");
12         ete.style.display = "none";
13
14         return 0;
15   \}
16
17   function show\_description(elem)
18   \{
19         var eop = document.getElementById(elem+"open");
20         eop.style.display = "none";
21         var ecl = document.getElementById(elem+"close");
22         ecl.style.display = "block";
23
24         var ete = document.getElementById(elem+"text");
25         ete.style.display = "block";
26
27         return 0;
28  \}
29 }

Figure 12.6b: Opening and closing sections of a table; Macro file, including JavaScript