document.getElementsByTagName("body").item(0).style.cursor="pointer"
}
如果无效则body不够大,换成:
window.onload=function(){document.getElementsByTagName("*").item(0).style.cursor="pointer"
}
当然,最好由CSS解决。
全局的直接写css样式--适用于ie6button{
star : expression(onmouseover=this.style.cursor='hand')
}
如果是高于ie6版本的话
用javascript来做
<script type="text/javascript">
window.onload=function(){
var btnlist= document.getElementByTagName("button")
for(var i=0i<btnlist.lengthi++){
btnlist[i].onmouseover=function(){
btnlist[i].style.cursor='hand'
}
}
}
</script>