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 >
Wrap
Text File
|
2003-06-18
|
842b
|
22 lines
<PUBLIC:COMPONENT URN="-/msmny:thumbnail/-">
<PUBLIC:ATTACH FOR="element" EVENT="onclick" ONEVENT="Main()" />
<SCRIPT TYPE="text/jscript" LANGUAGE="JScript">
<!--
function Main()
{
var hSrc = window.event.srcElement;
if("SPAN" == hSrc.tagName || "IMG" == hSrc.tagName)
{
var bWdth = hSrc.getAttribute("ImgWidth");
var bHght = hSrc.getAttribute("ImgHeight");
var szSrc = hSrc.getAttribute("ImgSource") + ".gif";
var hBdy = mhThmbnl.document.body;
element.children.tags("P")[0].children.tags("SPAN")[0].runtimeStyle.color = "purple";
hBdy.style.border = "2px solid red";
hBdy.innerHTML = '<IMG SRC="' + szSrc + '" HEIGHT="' + bHght + '" WIDTH="' + bWdth + '" GALLERYIMG="no">';
mhThmbnl.show(event.clientX - bWdth,event.clientY + 20,bWdth,bHght,document.body);
}
}
//-->
</SCRIPT>
</PUBLIC:COMPONENT>