home *** CD-ROM | disk | FTP | other *** search
/ Cricao de Sites - 650 Layouts Prontos / WebMasters.iso / Servidores / JanaSetup.exe / admin / seiten_js / logfile.js < prev    next >
Text File  |  2006-05-08  |  504b  |  30 lines

  1. function pre_scroll()
  2. {
  3.     if (window.innerWidth)
  4.     {
  5.         with (window)
  6.         {
  7.             var log_width = innerWidth - 114;
  8.             var log_height = innerHeight - 137;
  9.         }
  10.     }
  11.     else
  12.     {
  13.         with (document.body)
  14.         {
  15.             var log_width = offsetWidth - 114;
  16.             var log_height = offsetHeight - 127;
  17.         }
  18.     }
  19.  
  20.     with (document)
  21.     {
  22.         getElementById('logfile').style.width = log_width + 'px';
  23.         getElementById('logfile').style.height = log_height + 'px';
  24.     }
  25. }
  26.  
  27. /**/
  28.  
  29. onresize = pre_scroll;
  30. onload   = pre_scroll;