Prindol

DESIGN, HTML5, CSS3, DOM, Jquery, JSON, Actionscript2/3, Linux, IIS

You are not logged in.

#1 2014-09-19 18:15:51

skydown
Administrator
Registered: 2011-07-25
Posts: 315

[JAVASCRIPT] 팝업 본문 높이 조절

window.onload = window.onresize = function(){
    setDocHeight();
}
function setDocHeight() {
    document.getElementById('content').style.height = getDocHeight()-84 +'px';
}
function getDocHeight() {
    var height = "innerHeight" in window 
        ? window.innerHeight
        : document.documentElement.offsetHeight;
        return height;
}
jumpto(getAnchor());
function jumpto(anchor){
    window.location.href = "#"+anchor;
}
function getAnchor() {  
    var currentUrl = document.URL,
    urlParts = currentUrl.split('#');
    return (urlParts.length > 1) ? urlParts[1] : null;
}

Offline

Board footer

Powered by FluxBB