home *** CD-ROM | disk | FTP | other *** search
/ Excalibur 71 / Excalibur_71_cd2.bin / Microsoft_Internet_50 / ieak5.exe / RCDATA / CABINET / ieakhelp.chm / diagrams.js < prev    next >
Text File  |  1999-02-24  |  798b  |  34 lines

  1. //============================================
  2. // get the title written
  3.  
  4.     var sPassedTitle = window.dialogArguments;
  5.     var sTitle = " ";
  6.     
  7.     if (sPassedTitle != null){
  8.         sTitle = sPassedTitle;
  9.     }
  10.     
  11.     document.write("<Title>" + sTitle + "</Title>")
  12.     
  13. //=============================================
  14. // Escape key handler
  15.  
  16. document.attachEvent ("onkeydown", byeBye);
  17.  
  18. function byeBye(){
  19.         //test for escape key
  20.         if(window.event.keyCode == 0x1b) self.close();
  21.         
  22. }
  23.  
  24. //============================================
  25. // resize the window if it's got a funky title bar
  26.  
  27. window.attachEvent ("onload", adjustHeight);
  28.  
  29. function adjustHeight(){
  30.     var iOffset = document.body.clientHeight - 369;
  31.     if (iOffset != 0) dialogHeight = (parseInt(dialogHeight) - iOffset) + "px";
  32. }
  33.  
  34.