Guest User

Untitled

a guest
May 25th, 2013
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. <script type="text/javascript">
  2. function getDocHeight() {
  3. var D = document;
  4. return Math.max(
  5. Math.max(D.body.scrollHeight, D.documentElement.scrollHeight),
  6. Math.max(D.body.offsetHeight, D.documentElement.offsetHeight),
  7. Math.max(D.body.clientHeight, D.documentElement.clientHeight)
  8. );
  9. }
  10. var docheight = ( getDocHeight() ) +'px';
  11. // alert( docheight );
  12. document.getElementById('pusher').style.height = docheight;
  13. </script>
  14.  
  15. <div id="pusher">This content is shown on the page</div>
  16. <p>Anything here is below the fold of the page and you will need to scroll down to see me</p>
Advertisement
Add Comment
Please, Sign In to add comment