UI笔记——杂
1.如何在button上设置鼠标触碰样式
2.在页面中添加时间js代码(时时)
3.页面加载状态
3.-------------------------------------------------
document.onreadystatechange = subSomething;//当页面加载状态改变的时候执行这个方法.
2.-------------------------------------------------
<script>
??? ??? ??? function testDate(){
??? ??? ??? ??? var date=new Date();
??? ??? ??? ??? var result="?? 当前时间:"+date.getFullYear()+"年"+(date.getMonth()+1)+"月"+date.getDate()+"日 "+date.getHours()+" : "+date.getMinutes()+" : "+date.getSeconds();
??? ??? ??? ??? document.getElementById("timeShow").innerHTML=result;
??? ??? ??? ??? }
??? ??? ??? ??? setInterval("testDate()", 1000);
??? ??? ??? </script>(timeshow为插入id)
?
1.-------------------------------------------------
<INPUT?TYPE="submit"?style="cursor:?hand"?value="hand">
auto??????????:标准光标
default???????:标准箭头
hand??????????:手形光标
wait??????????:等待光标
text??????????:I形光标
vertical-text?:水平I形光标
no-drop???????:不可拖动光标
not-allowed???:无效光标
help??????????:?帮助光标
all-scroll????:三角方向标
move??????????:移动标
crosshair?????:十字标