You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
919 B
51 lines
919 B
<HTML>
|
|
<HEAD>
|
|
|
|
<!--
|
|
Copyright (c) 2000 Microsoft Corporation
|
|
-->
|
|
|
|
<BODY>
|
|
|
|
<OBJECT ID=idTB CLASSID="CLSID:FC7D9E08-3F9E-11d3-93C0-00C04F72DAF7" WIDTH=100% HEIGHT=30>
|
|
<PARAM id=NoLoc1 name="Definition" value="toolbar.xml">
|
|
</OBJECT>
|
|
|
|
<BUTTON onClick="EnableButton1();" >Enable 1</BUTTON>
|
|
<BUTTON onClick="DisableButton1();">Disable 1</BUTTON><BR>
|
|
|
|
<BUTTON onClick="ShowButton2();" >Show 1</BUTTON>
|
|
<BUTTON onClick="HideButton2();">Hide 1</BUTTON><BR>
|
|
|
|
</BODY>
|
|
|
|
<SCRIPT>
|
|
|
|
function EnableButton1()
|
|
{
|
|
idTB.SetState( "BACK", true );
|
|
}
|
|
|
|
function DisableButton1()
|
|
{
|
|
idTB.SetState( "BACK", false );
|
|
}
|
|
|
|
function ShowButton2()
|
|
{
|
|
idTB.SetVisibility( "HOME", true );
|
|
}
|
|
|
|
function HideButton2()
|
|
{
|
|
idTB.SetVisibility( "HOME", false );
|
|
}
|
|
|
|
</SCRIPT>
|
|
|
|
<SCRIPT LANGUAGE="JScript" EVENT="onCommand( tb, id )" FOR="idTB">
|
|
alert(id);
|
|
</SCRIPT>
|
|
|
|
</HTML>
|
|
|