PageSourceSearch

https://public.resource.org/js/toggle.js

js resource.org collected 2026-10-01 08:34:26 UTC 734 bytes, 28 lines download raw bytes

1function toggleVisibility(id, NNtype, IEtype, WC3type) {
2    if (document.getElementById) {
3        eval("document.getElementById(id).style.visibility = \"" + WC3type + "\"");
4    } else {
5        if (document.layers) {
6            document.layers[id].visibility = NNtype;
7        } else {
8            if (document.all) {
9                eval("document.all." + id + ".style.visibility = \"" + IEtype + "\"");
10            }
11        }
12    }
13}
14
15function ChangeZ(id) {
16obj = document.getElementById("existingLayerID");
17if (typeof obj!="undefined")
18{
19 obj.style.zIndex=50;
20}
21}
22
23function tOn(id) {
24   toggleVisibility(id, "show", "visible", "visible") ;
25   }
26function tOff(id) {
27   toggleVisibility(id, 'hidden', 'hidden', 'hidden') ;
28   }

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.