home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 June / CHIP_CD_2004-06.iso / bonus / buhgal / files / M12USWEB.exe / RCDATA / CABINET / money.cab / msmoney.chm / bhvexternal.htc < prev    next >
Text File  |  2003-06-18  |  724b  |  45 lines

  1. <PUBLIC:COMPONENT URN="-/msmny:xtrnlwndw/-">
  2. <PUBLIC:ATTACH FOR="element" EVENT="ondocumentready" ONEVENT="Main()" />
  3. <SCRIPT TYPE="text/jscript" LANGUAGE="JScript">
  4.  
  5. var hExternal;
  6. function Main()
  7. {
  8.     OpenExternal();
  9.     with(element)
  10.     {
  11.         onmouseover = function()
  12.         {
  13.             this.style.textDecoration = "underline";
  14.         }
  15.         onmouseout = function()
  16.         {
  17.             this.style.textDecoration = "none";
  18.         }
  19.         onclick = function()
  20.         {
  21.             try
  22.             {
  23.                 OpenExternal();
  24.             }
  25.             catch(e)
  26.             {
  27.                 return;
  28.             }
  29.         }
  30.     }
  31. }
  32. function OpenExternal()
  33. {
  34.     hExternal = window.open(element.getAttribute("url"),"hWinExtrnl");
  35.     try
  36.     {
  37.         hExternal.focus();
  38.     }
  39.     catch(e)
  40.     {
  41.         return;
  42.     }
  43. }
  44. </SCRIPT>
  45. </PUBLIC:COMPONENT>