Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // JavaScript Document
  2. function getHeight() {
  3.     var heightInt;
  4.     if ( typeof( window.innerHeight) == 'number' ) {
  5.             heightInt = window.innerHeight  ;
  6.     }
  7.     else if( document.documentElement && ( document.documentElement.clientHeight)) {
  8.         heightInt = document.documentElement.clientHeight;
  9.     }
  10.     return [ heightInt ];
  11. }
  12.  
  13.  
  14. function setBodydivHeight() {
  15.     var int;
  16.     int = getHeight() - 133;
  17.     document.getElementById("bodycontent").style.height = int;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement