请问如何实现ie工具条上鼠标移上去是突出的效果
我想用button的方法来实现,但是这样位置有偏差,代码如下,应该如何实现才好?
<html>
<head>
<title>Untitled Document</title>
<style type="text/css">
.on{display:online}
.off{display:none}
</style>
<script language="javascript">
function showButton(){
var tableNode,buttonNode;
tableNode=document.all.item("1");
buttonNode=document.all.item("2");
tableNode.className="off";
buttonNode.className="on";
}
function hideButton(){
var tableNode,buttonNode;
tableNode=document.all.item("1");
buttonNode=document.all.item("2");
tableNode.className="on";
buttonNode.className="off";
}
</script>
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" height="30" bgcolor="#E4E4E4" id="1" style="cursor:hand" onMouseOver="showButton()" class="on">
<tr>
<td align="right"><img src="" /></td>
<td valign="bottom" style="font:12">刷新</td>
</tr>
</table>
<button class="off" id="2" style="cursor:hand" onMouseOut="hideButton()" >
<table border="0" height="20" cellpadding="0" cellspacing="0" bgcolor="#E4E4E4">
<tr>
<td align="right"><img src="" /></td>
<td valign="bottom" style="font:12">刷新</td>
</tr>
</table>
</button>
</body>
</html>