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
/
hcdropdown.htc
< prev
next >
Wrap
Text File
|
2003-06-18
|
2KB
|
72 lines
<PUBLIC:COMPONENT URN="-/msmny:dropdown/-">
<PUBLIC:ATTACH FOR="element" EVENT="ondocumentready" ONEVENT="Main()" />
<PRIVATE:PROPERTY NAME="ActiveColor" />
<PRIVATE:PROPERTY NAME="InactiveColor" />
<PRIVATE:PROPRETY NAME="RelatedField" />
<SCRIPT TYPE="text/jscript" LANGUAGE="JScript">
<!--
@set @debughelp = false;
function Main()
{
RelatedField = element.document.getElementById(element.getAttribute("FieldToToggle"));
if(RelatedField)
{
ActiveColor = "purple";
InactiveColor = "#0000ff";
with(element)
{
style.color = InactiveColor;
style.cursor = "hand";
style.textDecoration = "none";
onmouseover = function()
{
this.style.textDecoration = "underline";
}
onmouseout = function()
{
this.style.textDecoration = "none";
}
onclick = function()
{
var bRotation;
try
{
if("none" == RelatedField.currentStyle.display)
{
bRotation = 3;
RelatedField.style.display = "block";
RelatedField.scrollIntoView(false);
}
else
{
bRotation = 0;
RelatedField.style.display = "none";
}
this.children[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(rotation=" + bRotation + ")";
}
catch(exception)
{
//
}
this.runtimeStyle.color = ActiveColor;
this.style.fontStyle = ("normal" == this.currentStyle.fontStyle)
?
"italic"
:
"normal"
;
}
}
}
else
{
/*@if(@debughelp) alert("Assert: malformed XML\n\nCannot locate text field.") @end @*/
element.style.display = "none";
}
}
//-->
</SCRIPT>
</PUBLIC:COMPONENT>