view gnv/src/main/webapp/scripts/gnviewer.js @ 1012:5b118b59dc14

Do some GUI-Improvements in the Map-Client gnv/trunk@1231 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Mon, 28 Jun 2010 15:15:38 +0000
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";
}

http://dive4elements.wald.intevation.org