WEB开发网
开发学院网页设计JavaScript 学习jQuery之旅--使用炫酷的jQuery插件 阅读

学习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;overf

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>

上一页  1 2 3 4 5 6 7  下一页

Tags:学习 jQuery 之旅

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接