首页

源码搜藏网

首页 > 网页特效 > jQuery特效 >

jquery鼠标经过图片抖动

创建时间:2014-06-09 18:11  

jquery鼠标经过图片抖动
jquery鼠标经过图片抖动
效果预览 立即下载
jquery鼠标经过图片抖动jquery鼠标经过图片抖动是一款当鼠标进过图片时,图片自动抖动哦,效果很酷,适合相册或图片列表的网站。jQuery鼠标经过图片抖动抖动效果 所属专题:图片代码

<style type="text/css">
<!--
ul{list-style:none;margin:0;padding:0;}
ul li{vertical-align:bottom;}
.img_box { width:900px; height:150px; margin:0px auto;}
.img_box li{ width:200px; float:left; height:135px; border:1px solid #eee; padding:3px; margin-left:8px;}
body {
margin-top: 165px;
}
-->
</style>
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="js/jump.js"></script>
<script type="text/javascript">
$(function(){
$("#ul img").each(function(k,img){
new JumpObj(img,10);
//第一个参数代表元素对象
//第二个参数代表抖动幅度
});
});
</script>
上一篇:jQuery导航栏上下滑动效果
下一篇:jQuery下拉菜单插件Tendina

相关内容

热门推荐