用"button"的"onMouseMove事件"和"onMouseOut时间"可以控制样式!代码如下:
2007-08-09 14:36
609 查看
用"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)" >
<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)" >
相关文章推荐
- 可运行代码的"运行代码"-2006-6-26-1 终于可以用了
- 获取日期时间星期的"JAVASCRIPT代码"
- "Developer tools access" 需控制另一个进程才能继续调试 解决方案
- DIV模拟LED,js控制显示时间,大家可以复制代码到HTML文件,执行HTML就行了
- Opensack Issue & Solution: "HypervisorUnavailable: Connection to the hypervisor is broken on host"
- hadoop的"mapred.ReduceTask: java.net.ConnectException: Connection timed out"问题解决
- <authentication+mode="Forms">+是应用级别的...在子目录下用+<authorization>节来控制访问的解决方法
- FORM中使用onSubmit="return false"防止表单自动提交,以及submit和button提交表单的区别
- "爱说说"技术原理:前后台参数约定及逻辑代码(三)
- "make: *** [out/target/common/obj/PACKAGING/checkapi-current-timestamp] 错误 38" 问题解决
- "Hibernate"对数据库操作的实例代码
- "make: *** [out/target/common/obj/PACKAGING/checkapi-current-timestamp] 错误 38" 问题解决
- "$err" : "not authorized for query on admin.system.namespaces"
- js中window.createPopup()方法以及attachEvent("onmouseover",OverFuncOne)实例
- VS2010中C#代码用"转到定义"或F12转到定义时,总是显示从元数据的问题
- "li隔行变色"代码
- SVN:web浏览器可以访问,但svn客户端check out时,出现"永久转移,重定位"之类的错误
- use "OnCommand" event to handle multiple button click
- "Out of memory in function ..." 问题 的解决之道
- <input type="file">中怎设置按钮的样式