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 / hcthumbnail.htc < prev    next >
Text File  |  2003-06-18  |  842b  |  22 lines

  1. <PUBLIC:COMPONENT URN="-/msmny:thumbnail/-">
  2. <PUBLIC:ATTACH FOR="element" EVENT="onclick" ONEVENT="Main()" />
  3. <SCRIPT TYPE="text/jscript" LANGUAGE="JScript">
  4. <!--
  5. function Main()
  6. {
  7.     var hSrc = window.event.srcElement;
  8.     if("SPAN" == hSrc.tagName || "IMG" == hSrc.tagName)
  9.     {
  10.         var bWdth = hSrc.getAttribute("ImgWidth");
  11.         var bHght = hSrc.getAttribute("ImgHeight");
  12.         var szSrc = hSrc.getAttribute("ImgSource") + ".gif";
  13.         var hBdy  = mhThmbnl.document.body;
  14.         element.children.tags("P")[0].children.tags("SPAN")[0].runtimeStyle.color = "purple";
  15.         hBdy.style.border = "2px solid red";
  16.         hBdy.innerHTML = '<IMG SRC="' + szSrc + '" HEIGHT="' + bHght + '" WIDTH="' + bWdth + '" GALLERYIMG="no">';
  17.         mhThmbnl.show(event.clientX - bWdth,event.clientY + 20,bWdth,bHght,document.body);
  18.     }
  19. }
  20. //-->
  21. </SCRIPT>
  22. </PUBLIC:COMPONENT>