JS代码:
function mouseOver()
{
document.body.style.backgroundImage="url('../media/images/topbg.GIF')";
}
function mouseOut()
{
document.body.style.backgroundImage="url('../media/images/layout-browser-hd.gif')";
}
body代码:
<input type='button' value="修改密码" id="editpass" style="background:url(../media/images/layout-browser-hd.gif);"onmouseover="mouseOver()" onmouseout="mouseOut()"/>
backgroundImage我用background试过也不行,请高手测试下告诉我行吗?感谢
一只甜甜圈
相关分类