More Questions Than Answers

Dan Atrill's blog site

Show / Hide dynamic layers

It’s possible to assign an id dynamically to a layer and set it to initally display: none Using the Javascript function below it is possible to toggle the dynamic layer on and off: function showdiv(div_id) { if (document.getElementById){ var targetID = document.getElementById(div_id).style.display; if (targetID == “none”) { document.getElementById(div_id).style.display = “block”; } else { document.getElementById(div_id).style.display = [...]

more... »

Tue, June 29 2004 » Web developing » Comments Off