Mercurial > dive4elements > gnv-client
view gnv/src/main/webapp/scripts/gnviewer.js @ 1138:2c00570ab3bd
merged doc
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:14:02 +0200 |
parents | d2582f75b144 |
children |
line wrap: on
line source
function displayOverlay() { adjustOverlaySize(); showDiv("overlay"); showDiv("overlayContent"); } function adjustOverlaySize() { var lHeight = document.getElementById("page").scrollHeight; //alert(lHeight); var lOverlay = document.getElementById("overlay"); lOverlay.style.height = lHeight + 'px'; } function showDiv(pName) { var el = document.getElementById(pName); el.style.visibility = (el.style.visibility == "visible") ? "hidden" : "visible"; }