jquery悬浮提示框
来源:互联网 发布:自己设计房子软件 编辑:程序博客网 时间:2024/05/17 00:13
- <html>
- <head>
- <script type="text/javascript" src="jquery.js"></script>
- <script type="text/javascript">
- $(function() {
- x = 5;
- y = 15;
- $("p").hover(function(e) {
- otitle = this.title;
- this.title = "";
- var ndiv = "<div id='leo'>" + otitle + "</div>";
- $("body").append(ndiv);
- $("#leo").css({
- "top" : (e.pageY + y) + "px",
- "left" : (e.pageX + x) + "px"
- }).show(2000);
- $(this).mousemove(function(e) {
- $("#leo").css({
- "top" : (e.pageY + y) + "px",
- "left" : (e.pageX + x) + "px"
- }).show(1000);
- });
- }, function() {
- this.title = otitle;
- $("#leo").remove();
- });
- });
- </script>
- <style type="text/css">
- #leo {
- position: absolute;
- border: 1px solid grey;
- opacity: 0.8;
- background: grey;
- }
- </style>
- </head>
- <body>
- <p title="1dfgfdgdfg">If you click on me, I will disappear.</p>
- <p title="2dgfdgdfgdf">If you click on me, I will disappear.</p>
- <p title="3dgfdgfdgfder">If you click on me, I will disappear.</p>
- <p title="4ghfghfghfhgf">If you click on me, I will disappear.</p>
- </body>
- </html>
0 0
- jquery悬浮提示框
- jquery悬浮提示框
- jquery悬浮提示框
- 标题悬浮提示框
- div悬浮提示框
- jQuery实现网页右下角悬浮层提示
- jquery-tips悬浮提示插件说明
- JQuery 悬浮弹出框
- winfrom 控件显示悬浮提示框
- angularjs框架的悬浮提示框实现
- Echarts2 自定义悬浮框提示色
- jquery悬浮框,获取鼠标坐标
- javascript jquery 仿京东左侧悬浮框效果
- KX鼠标悬浮提示
- echarts 鼠标悬浮提示
- eclipse关闭悬浮提示
- JQuery 提示框,提示信息
- Android APIDemo学习之Listview(首字母提示悬浮框)
- day 026 QQ
- 将多个js函数绑定到onload事件上
- 最大团
- js 动作与函数绑定
- How to create a task in the openwrt system, the timer to switch WiFi power。
- jquery悬浮提示框
- 外卖的撕‘哔’大战 Contest2074 - 中南大学第九届大学生程序设计竞赛网络预选赛
- 用java语言和xfire工具写一个简单的webservice并运用
- BZOJ 4017 小Q的无敌异或
- ubuntu安装rabbitmq和python的使用实现
- 利用浮层使select不可选
- H公司工作总结(1)
- python使用rabbitmq实例二,工作队列
- PADS学习之路02-PADS LOGIC概述