学习jQuery之旅--使用炫酷的jQuery插件
2010-09-14 13:48:20 来源:WEB开发网css和jQuery代码:
<style>
.lavaLamp
{
position: relative;
height: 29px; width: 600px;
background: url("image/bg.gif");
padding: 15px; margin: 10px 0;
overflow: hidden;
}
.lavaLamp li
{
float:left;
list-style: none;
}
.lavaLamp li.back
{
background: url("image/lava.gif") no-repeat right -30px;
width: 9px; height: 30px;
z-index: 8;
position: absolute;
}
.lavaLamp li.back .left
{
background: url("image/lava.gif") no-repeat top left;
height: 30px;
margin-right: 9px;
}
.lavaLamp li a
{
position: relative; overflow: hidden;
text-decoration: none;
text-transform: uppercase;
font: bold 14px arial;
color: #fff; outline: none;
text-align: center;
height: 30px; top: 7px;
z-index: 10; letter-spacing: 0;
float: left; display: block;
margin: auto 10px;
}
</style>
<script type="text/javascript" src="js/jquery-latest.pack.js"></script>
<script type="text/javascript" src="js/jquery.lavalamp.js"></script>
<script type="text/javascript" src="js/jquery.easing.js"></script>
<script type="text/javascript">
$(function() { $(".lavaLamp").lavaLamp({ fx: "backout", speed: 700 })});
</script>
赞助商链接