网页编程----js键盘事件小应用
2007-08-10 14:30
459 查看
代码来自PHPFANS管理员blankyao
<HTML>
<BODY>
<script type="text/javascript" language="javascript">
function mouseOverFunction()
{
if(window.event.shiftKey && window.event.ctrlKey)
{
document.form1.textbox.value="shif and ctrl keys down and mous over at :"+window.event.x+"'"+window.event.y
}
return
}
</script>
<center>
<form name="form1" action="action">
<h1>use the mouse in javascript</h1>
<br/>
clickthemouse(hold shift ctrl alt)
<br/>
<a href="mouse.htm" name="mouselink"
onmouseover="mouseOverFunction()"
>
move the mouse please
</a>
<br/>
<br/>
<input type="text" name="textbox" size="60"/>
</form>
</center>
</BODY>
</HTML>
<HTML>
<BODY>
<script type="text/javascript" language="javascript">
function mouseOverFunction()
{
if(window.event.shiftKey && window.event.ctrlKey)
{
document.form1.textbox.value="shif and ctrl keys down and mous over at :"+window.event.x+"'"+window.event.y
}
return
}
</script>
<center>
<form name="form1" action="action">
<h1>use the mouse in javascript</h1>
<br/>
clickthemouse(hold shift ctrl alt)
<br/>
<a href="mouse.htm" name="mouselink"
onmouseover="mouseOverFunction()"
>
move the mouse please
</a>
<br/>
<br/>
<input type="text" name="textbox" size="60"/>
</form>
</center>
</BODY>
</HTML>
相关文章推荐
- 网页编程小经验-asp.net中触发js事件
- js事件应用--基础(事件对象、鼠标事件、键盘事件)
- 简单的js网页应用(事件与事件处理的响应)
- 【图形化编程软件】 sikuli常用函数、简单事件操作 键盘操作 个人总结笔记
- js鼠标按键事件和键盘按键事件用法实例汇总
- js中的事件响应,实现网页交互,鼠标点击、经过等
- ASP网页模板的应用(JS)
- JS循环网页元素,手动触发事件
- js键盘事件
- js键盘事件全面控制详解
- Three.js - 网页3D应用的普及已经指日可待了
- JS 键盘监听事件 enter 13
- js网页滚动条滚动事件
- js对键盘输入事件绑定到特定按钮。
- 常用JS键盘鼠标事件
- Create.js键盘事件处理机制
- js的键盘事件
- 移动端网页JS框架-手机触摸事件框架,日历框架带滑动效果
- js触发asp.net的Button的Onclick事件应用