用"button"的"onMouseMove事件"和"onMouseOut时间"可以控制样式!代码如下:


用"button"的"onMouseMove事件"和"onMouseOut时间"可以控制呀!代码如下:
<script language="JavaScript">
    function over(scr){
        scr.className = "inout22";//sdfsdfsdf
    }
    function out(scr){
        scr.className = "input21";
    }
</script>
<input type="button" name="Submit" value="按钮" class="input21" onMouseMove="over(this)" onMouseOut="out(this)" >
<input type="button" name="Submit" value="按钮" class="input21" onMouseMove="over(this)" onMouseOut="out(this)" >
<input type="button" name="Submit" value="按钮" class="input21" onMouseMove="over(this)" onMouseOut="out(this)" >
<input type="button" name="Submit" value="按钮" class="input21" onMouseMove="over(this)" onMouseOut="out(this)" >
<asp:textbox id="textbox1" runat="server" onMouseMove="over(this)" onMouseOut="out(this)" >

你可能感兴趣的:(JavaScript,function,Class,input,button,textbox)