JQuery实现当鼠标停留在某区域3秒后执行
2024-10-11 14:06:39
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.2.js"></script>
</head>
<style type="text/css">
.main{width:500px;height:400px;border:dashed 1px #ccc;margin:0 auto;line-height:400px;text-align:center;}
</style>
<body>
<script type="text/javascript">
$(function(){
$(".main").mouseover(function(){
setTimeout(function(){
alert('当你的鼠标移动到框体时,我会延迟3秒才显示哦!');
},3000)
});
})
</script>
<div class="main">把鼠标移入此框体中,等待3秒。</div>
</body>
</html>
最新文章
- php给客户端返回数据注意。
- let命令
- JLS(Third Edition) Chapter12 Execution
- Android常见控件— — —EditText
- Fisker大师用ZBrush制作兽人萨尔全过程
- 、Dll文件的编写 调用 说明
- (转)iOS7界面设计规范(10) - UI基础 - 文字排版与配色
- Android窗口管理服务WindowManagerService显示Activity组件的启动窗口(Starting Window)的过程分析
- windows下使用python googleprotobuf
- MEAN教程2-Nodejs安装
- GUI PasswordField
- linux下lampp(xampp)安装memcached扩展
- ssh生成私钥
- RNN通俗理解
- django select_related()和反射结合
- 跟我学Spring Boot(一)创建Spring Boot 项目
- 复合梯形公式、复合辛普森公式 matlab
- CAN-bus接口控制实验
- Solo 博客系统 1.7.0 发布 - 新版 MD 编辑器
- [uwp]MVVM模式实战之必应壁纸查看器
热门文章
- 解决MVC EF Code First错误:Model compatibility cannot be checked because the EdmMetadata type was not included in the model.
- 选择排序---堆排序算法(Javascript版)
- 微信、QQ、微博、陌陌……社交网络的底层逻辑是什么?
- sql 指定值排序
- 清除Windows的DNS缓存
- 图说hibernate注释--java里配置参数(一.1)
- Spring注解@Value的用法
- 线程池之 Callable、Future、FutureTask
- python django 多级业务树形结构规划及页面渲染
- 软件项目发展历史<;人月神话>;这本书好