home *** CD-ROM | disk | FTP | other *** search
/ com!online 2002 June / comonline0602.iso / software / cogitum / cociter.exe / CogitumH.___ / HTML / CTFRAMES.JS < prev    next >
Encoding:
Text File  |  2001-08-08  |  1.1 KB  |  44 lines

  1. function fnOnResize(some) {
  2.     var barBody = document.frames.item(some.id).document.body;
  3.  
  4.     var bHorResize = false;
  5.     if (nLastToolbarBodyHeight != barBody.scrollHeight) {
  6.         nLastToolbarBodyHeight = some.runtimeStyle.height =
  7.             barBody.scrollHeight;
  8.         bHorResize = true;
  9.                 
  10.     };
  11.  
  12.     if (nLastFrameBodyHeight !=  some.document.body.clientHeight ||
  13.         bHorResize) {
  14.  
  15.         some.nextSibling.runtimeStyle.height =
  16.             some.document.body.clientHeight -
  17.                 nLastToolbarBodyHeight - 2;
  18.  
  19.         nLastFrameBodyHeight = some.document.body.clientHeight;
  20.     };
  21. };
  22.  
  23. /*
  24. function fnGetParentIFrame() {
  25.     if (window.parent.document.all.ctLeftToolbar != null) {
  26.         return (window.parent.document.all.ctLeftToolbar);
  27.     }
  28.     else if (window.parent.document.all.ctRightToolbar != null) {
  29.         return (window.parent.document.all.ctRightToolbar);
  30.     };
  31.  
  32.     return null;
  33. };
  34. function fnOnLoadToolbar() {
  35.     if (window.parent.document.all.ctLeftToolbar != null) {
  36.         window.parent.fnResizeToolbar(
  37.             window.parent.document.all.ctLeftToolbar);
  38.     }
  39.     else {
  40.         window.parent.document.fnResizeToolbar(
  41.             window.parent.document.all.ctRightToolbar);
  42.     };
  43. };
  44. */