function resizeRock() { document.getElementById("rockImg").style.height = (document.documentElement.clientHeight - 100) * 0.9; }