JavaScript鼠标经过事件(onmouseover)

鼠标经过事件,当鼠标移到一个对象上时,该对象就触发onmouseover事件,并执行onmouseover事件调用的程序。

实例:当鼠标移动到绑定了onmouseover事件的元素时,弹出对话框

<!DOCTYPE HTML>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>php.cn</title>
        <script>
            function fun(){
                window.alert("请确认四周没有人再点击提交")
            } 
        </script>
    </head>
    <body>
        <form>
            机密:
            <input name="txt" type="text" >
            <input name="" type="button" value="提交" onmouseover="fun()"/>
        </form>
    </body>
</html>


继续学习
||
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>php.cn</title> <script> function fun(){ window.alert("请确认四周没有人再点击提交") } </script> </head> <body> <form> 机密: <input name="txt" type="text" > <input name="" type="button" value="提交" onmouseover="fun()"/> </form> </body> </html>
提交重置代码
章节
笔记
提问
课件
反馈
捐赠

javascript初级教程

高并发千万级数据库系统解决方案
  • 推荐课程
  • 评论
  • 问答
  • 笔记
  • 课件下载

onmouseover 鼠标经过

6年前    添加回复 0

我只是一条咸鱼哈

加油

6年前    添加回复 0

一辆想出轨的无轨电车

鼠标事件不少,先看看

7年前    添加回复 0

我又来了

这些事件从字面上就能理解了

7年前    添加回复 0

学习ing

这个例子搞的好神秘啊,鼠标经过就会触发

7年前    添加回复 0

橱窗的光

鼠标经过时触发的事件,很容易理解

7年前    添加回复 0

末日的春天

主要靠鼠标移动控制

7年前    添加回复 0

课件暂不提供下载,工作人员正在整理中,后期请多关注该课程~