home *** CD-ROM | disk | FTP | other *** search
/ PC & Mediji 2002 March / PCM_0203.iso / MEDIA / DEMO / M10USWEB.exe / RCDATA / CABINET / money.cab / msmoney.chm / hconlineguide.htc < prev    next >
Text File  |  2001-07-25  |  1KB  |  68 lines

  1. <PUBLIC:COMPONENT URN="-/msmny:onlineguide/-">
  2.  
  3. <!----------------------------------------------------------
  4.     Copyright (c) 2001 Microsoft Corporation.
  5.     All rights reserved.
  6.  
  7.     Project:    Money 2002
  8.     File:       hcOnlineGuide.htc 
  9.     Revised:    May 17 2001
  10.     Owner:      michealh
  11. --------------------------------------------------------- -->
  12.  
  13. <PUBLIC:ATTACH FOR="element" EVENT="ondocumentready" ONEVENT="Main()" />
  14. <SCRIPT TYPE="text/jscript" LANGUAGE="JScript">
  15.  
  16. var hGuideWin;
  17. function Main()
  18. {
  19.     OpenUserGuide();
  20.     with(element)
  21.     {
  22.         onmouseover = function()
  23.         {
  24.             this.style.textDecoration = "underline";
  25.         }
  26.         onmouseout = function()
  27.         {
  28.             this.style.textDecoration = "none";
  29.         }
  30.         onclick = function()
  31.         {
  32.             try
  33.             {
  34.                 OpenUserGuide();
  35.             }
  36.             catch(e)
  37.             {
  38.                 return;
  39.             }
  40.         }
  41.     }
  42. }
  43. function OpenUserGuide()
  44. {
  45.     var iScrnHght = (screen.height > 600)
  46.         ?
  47.         600
  48.         :
  49.         screen.height
  50.         ;
  51.     var iScrnWdth = (screen.width > 800)
  52.         ?
  53.         800
  54.         :
  55.         screen.width
  56.         ;
  57.     hGuideWin = window.open("OLM_default.html","hWinUsrGd","resizable=no,status=no,toolbar=no,menubar=no,location=no,directories=no,width=" + (iScrnWdth - 10) + ",height=" + (iScrnHght - 29) + ",top=0,left=0");
  58.     try
  59.     {
  60.         hGuideWin.focus();
  61.     }
  62.     catch(e)
  63.     {
  64.         return;
  65.     }
  66. }
  67. </SCRIPT>
  68. </PUBLIC:COMPONENT>