.button{
background: url(button_ok.gif) no-repeat;
border-style: none;
event
:expression(onmouseover = function(){this.style.background = 'url(button_okSel.gif) no-repeat';},onmouseout = function(){this.style.background = 'url(button_ok.gif) no-repeat';})
}
做两张图片,一个是正常效果,一个是按下效果,通过css event属性的 onmouseover和onmouseout的背景图片来控制
另外,图片的按下效果,不是图片在动,而是图片里的字在动