XxDesmusxX's Articles In Gadgets & Electronics
February 9, 2004 by XxDesmusxX
LOOK AT THE SOURCE CODE Example 6: Position a footer with JavaScript & CSS 0) { var contentHeight = document.getElementById('content').offsetHeight; var footerElement = document.getElementById('footer'); var footerHeight = footerElement.offsetHeight; if (windowHeight - (contentHeight + footerHeight) >= 0) { footerElement.style.position = 'absolute'; footerElement.style.top = (windowHeight - footerHeight) + 'px'; } else { footerElement....