<input type="button" value="上传" id="btnUpload" class="devbutton" onmouseover="mouseover()"
onmouseout="mouseout()" onclick="viewbillView(this,'<%=YPBH %>')" style="width: 80px;
height: 24px; border: #7F7F7F 1px solid; background-color: #F2F2F2; padding: 2px;
cursor: hand;" />
function mouseover()
{
document.getElementById("btnUpload").style.backgroundImage = "url(../../Css/Aqua/Editors/edtButtonCheckedBack.gif)";
}
function mouseout()
{
document.getElementById("btnUpload").style.backgroundColor = "#F2F2F2";
}
移入起作用,为什么移出执行这个function但不改变颜色呢?
function mouseout()
{
document.getElementById("btnUpload").style.backgroundImage = "url()";
document.getElementById("btnUpload").style.backgroundColor = "#f2f2f2";
}本回答被网友采纳