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
/
hcglossary.htc
< prev
next >
Wrap
Text File
|
2003-06-18
|
1KB
|
55 lines
<PUBLIC:COMPONENT URN="-/msmny:glossary/-">
<PUBLIC:ATTACH FOR="element" EVENT="ondocumentready" ONEVENT="Main()" />
<PRIVATE:PROPERTY NAME="ActiveColor" />
<PRIVATE:PROPERTY NAME="InactiveColor" />
<SCRIPT TYPE="text/jscript" LANGUAGE="JScript">
String.prototype.trim = function()
{
return this.replace(/(^\s*)|(\s*$)/g,"");
}
function Main()
{
var hTerm;
var szDfltColor;
ActiveColor = "purple";
InactiveColor = "blue";
szDfltColor = element.currentStyle.color;
try
{
if("object" == typeof GlossaryData)
{
hTerm = (0 == element.getAttribute("tNum").length)
?
GlossaryData.documentElement.selectSingleNode("term[title $ieq$ '" + element.innerText.trim() + "']/definition")
:
GlossaryData.documentElement.selectSingleNode("term[@tNum='" + element.getAttribute("tNum") + "']/definition")
;
element.title = hTerm.text;
element.style.color = InactiveColor;
element.style.cursor = "help";
element.onmouseover = function()
{
this.style.color = ActiveColor;
this.style.textDecoration = "underline";
}
element.onmouseout = function()
{
this.style.color = InactiveColor;
this.style.textDecoration = "none";
}
}
}
catch(e)
{
element.title = "";
element.style.color = szDfltColor;
element.style.cursor = "default";
}
}
</SCRIPT>
</PUBLIC:COMPONENT>