84、变色的按钮

84、变色的按钮

脚本说明:

把如下代码加入<body>区域中

<SCRIPT>function msover(){{event.srcElement.style.color="000099";event.srcElement.style.backgroundColor="99ccff";event.srcElement.style.cursor = "hand";}}

function msout(){{event.srcElement.style.color="red";event.srcElement.style.backgroundColor="white";event.srcElement.style.cursor = "auto";}}</SCRIPT>

<button onmouseover="msover();" onmouseout="msout();" class=button type=submit>变色按钮</button>

Write a comment

Comments: 0