使用 HTC..  另存为: toolbar.htc
<PUBLIC:COMPONENT>
<PUBLIC:ATTACH onevent="contextmenu()" event="oncontextmenu"/>
<PUBLIC:ATTACH onevent="mouseover()" event="onmouseover"/>
<PUBLIC:ATTACH onevent="mouseout()" event="onmouseout"/>
<PUBLIC:ATTACH onevent="mouseup()" event="onmouseup"/>
<PUBLIC:ATTACH onevent="mousedown()" event="onmousedown"/>
</PUBLIC:COMPONENT>
<script language="JScript">
element.runtimeStyle.filter="Glow(Color='lime',Strength='10')";
function contextmenu()
{
event.returnValue=false;
}
function mouseover()
{
  element.runtimeStyle.borderBottom="outset black";
  element.runtimeStyle.borderTop="outset white";
  element.runtimeStyle.borderLeft="outset white";
  element.runtimeStyle.borderRight="outset black";
  element.runtimeStyle.borderWidth="2px";
}
function mouseout()
{
  element.runtimeStyle.posTop=element.style.posTop+2;
  element.runtimeStyle.posLeft=element.style.posLeft+2;
  element.runtimeStyle.filter="Glow(Color='lime',Strength='10')";
}
function mouseup()
{
  element.runtimeStyle.borderBottom="outset black";
  element.runtimeStyle.borderTop="outset white";
  element.runtimeStyle.borderLeft="outset white";
  element.runtimeStyle.borderRight="outset black";
}
function mousedown()
{
  element.runtimeStyle.borderBottom="inset white";
  element.runtimeStyle.borderTop="inset black";
  element.runtimeStyle.borderLeft="inset black";
  element.runtimeStyle.borderRight="inset white";
  element.runtimeStyle.borderWidth="1px";
}
</script>
HTML file:
<a href="XXXXXXX" style="behavior:url(toolbar.htc);">XXXX</a>