不使用插件的jquery 提示气泡
来源:互联网 发布:电池组bms软件下载 编辑:程序博客网 时间:2024/05/09 04:58
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Animated Menu Hover 1</title>
<script type="text/javascript" src="http://www.webdesignerwall.com/demo/jquery/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$(".menu li").hover(function() {
$(this).find("em").animate({opacity: "show", top: "-75"}, "slow");
}, function() {
$(this).find("em").animate({opacity: "hide", top: "-85"}, "fast");
});
});
</script>
<style type="text/css">
body {
margin: 10px auto;
width: 570px;
font: 75%/120% Arial, Helvetica, sans-serif;
}
.menu {
margin: 100px 0 0;
padding: 0;
list-style: none;
}
.menu li {
padding: 0;
margin: 0 2px;
float: left;
position: relative;
text-align: center;
}
.menu a {
padding: 14px 10px;
display: block;
color: #000000;
width: 144px;
text-decoration: none;
font-weight: bold;
background: url('http://www.webdesignerwall.com/demo/jquery/images/button.gif') no-repeat center center;
}
.menu li em {
background: url('http://www.webdesignerwall.com/demo/jquery/images/hover.png') no-repeat;
width: 180px;
height: 45px;
position: absolute;
top: -85px;
left: -15px;
text-align: center;
padding: 20px 12px 10px;
font-style: normal;
z-index: 2;
display: none;
}
</style>
</head>
<body>
<ul class="menu">
<li>
<a href="http://www.webdesignerwall.com">Web Designer Wall</a>
<em>A wall of design ideas, web trends, and tutorials</em>
</li>
<li>
<a href="http://bestwebgallery.com">Best Web Gallery</a>
<em>Featuring the best CSS and Flash web sites</em>
</li>
<li>
<a href="http://www.ndesign-studio.com">N.Design Studio</a>
<em>Blog and design portfolio of WDW designer, Nick La</em>
</li>
</ul>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Animated Menu Hover 1</title>
<script type="text/javascript" src="http://www.webdesignerwall.com/demo/jquery/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$(".menu li").hover(function() {
$(this).find("em").animate({opacity: "show", top: "-75"}, "slow");
}, function() {
$(this).find("em").animate({opacity: "hide", top: "-85"}, "fast");
});
});
</script>
<style type="text/css">
body {
margin: 10px auto;
width: 570px;
font: 75%/120% Arial, Helvetica, sans-serif;
}
.menu {
margin: 100px 0 0;
padding: 0;
list-style: none;
}
.menu li {
padding: 0;
margin: 0 2px;
float: left;
position: relative;
text-align: center;
}
.menu a {
padding: 14px 10px;
display: block;
color: #000000;
width: 144px;
text-decoration: none;
font-weight: bold;
background: url('http://www.webdesignerwall.com/demo/jquery/images/button.gif') no-repeat center center;
}
.menu li em {
background: url('http://www.webdesignerwall.com/demo/jquery/images/hover.png') no-repeat;
width: 180px;
height: 45px;
position: absolute;
top: -85px;
left: -15px;
text-align: center;
padding: 20px 12px 10px;
font-style: normal;
z-index: 2;
display: none;
}
</style>
</head>
<body>
<ul class="menu">
<li>
<a href="http://www.webdesignerwall.com">Web Designer Wall</a>
<em>A wall of design ideas, web trends, and tutorials</em>
</li>
<li>
<a href="http://bestwebgallery.com">Best Web Gallery</a>
<em>Featuring the best CSS and Flash web sites</em>
</li>
<li>
<a href="http://www.ndesign-studio.com">N.Design Studio</a>
<em>Blog and design portfolio of WDW designer, Nick La</em>
</li>
</ul>
</body>
</html>
0 0
- 不使用插件的jquery 提示气泡
- JQuery实现简单实用的气泡提示插件
- qTip2-气泡提示插件
- 关于ubuntu中气泡提示的使用
- jquery自动提示插件autocompite的使用
- jQuery Validation Plugin提示修改为气泡使用bootstrap
- VC++ 使用气泡提示
- 自定义气泡提示小插件
- grumble.js-非常酷的气泡提示插件
- Jquery tips 气泡提示信息
- 非常简单的气泡提示js(jquery)
- 使用jquery的插件的时候,插件不生效
- VC 中使用气泡提示
- 流行的jquery 提示插件
- jquery的输入提示插件
- JQuery气泡弹窗提示(带素材)
- Vs008中关于托盘气泡提示显示不出来的问题and sdk实现托盘加气泡
- jQuery的提示插件jQuery Impromptu
- 使用Java生成word文档(附源码)
- sqlite编译
- linux进程管理学习笔记
- POJ 1273 Drainage Ditches 网络流算法 .
- mysql数据库忘记密码时如何修改
- 不使用插件的jquery 提示气泡
- Daytime服务器
- dateFromString永远返回nil的处理办法
- eclipse调试java程序的九个技巧
- 关闭Application的三种方法
- Openstack liberty 中Cinder-api启动过程源码分析1
- linux学习之进程,线程和程序
- 再谈雅虎关于性能优化的 N 条规则
- Java中class的初始化顺序