home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC & Mediji 2002 March
/
PCM_0203.iso
/
MEDIA
/
DEMO
/
M10USWEB.exe
/
RCDATA
/
CABINET
/
money.cab
/
msmoney.chm
/
hcdropdown.htc
< prev
next >
Wrap
Text File
|
2001-07-25
|
2KB
|
87 lines
<PUBLIC:COMPONENT URN="-/msmny:dropdown/-">
<!----------------------------------------------------------
Copyright (c) 2001 Microsoft Corporation.
All rights reserved.
File: hcDropDown.htc
Revised: Mar 20 2001
Contact: michealh
--------------------------------------------------------- -->
<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";
var L_strDefaultColor = element.currentStyle.color;
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 L_intRotation;
try
{
if(RelatedField.currentStyle.display == "none")
{
L_intRotation = 3;
RelatedField.style.display = "block";
RelatedField.scrollIntoView(false);
}
else
{
L_intRotation = 0;
RelatedField.style.display = "none";
}
this.children[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(rotation=" + L_intRotation + ")";
}
catch(exception)
{
//
}
this.runtimeStyle.color = ActiveColor;
this.style.fontStyle = (this.currentStyle.fontStyle == "normal")
?
"italic"
:
"normal"
;
}
}
}
else
{
/*@if(@debughelp) alert("Assert: malformed XML\n\nCannot locate text field.") @end @*/
element.style.display = "none";
}
}
//-->
</SCRIPT>
</PUBLIC:COMPONENT>