/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function GetHeight() { var y = 0; if (self.innerHeight) { y = self.innerHeight; } else if (document.documentElement && document.documentElement.clientHeight) { y = document.documentElement.clientHeight; } else if (document.body) { y = document.body.clientHeight; } return y; } whe = GetHeight(); if (whe < 550) { ahe = 150; } else { ahe = 300; }