topical media & game development

talk show tell print

#javascript-code-09-getHeight.js / js



  // Get the actual height (using the computed CSS) of an element
  function getHeight( elem ) {
      // Gets the computed CSS value and parses out a usable number
      return parseInt( getStyle( elem, ‘height’ ) );
  }
  
  // Get the actual width (using the computed CSS) of an element
  function getWidth( elem ) {
      // Gets the computed CSS value and parses out a usable number
      return parseInt( getStyle( elem, ‘width’ ) );
  }
  
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.