一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

jquery实现图片上下左右翻滚效果代码

时间:2013-08-31 编辑:简简单单 来源:一聚教程网

我们先来看看核心代码

 代码如下 复制代码

$(document).ready(function(){
 $(".top div a").hover(function(){
  $("img",this).stop().animate({top:"-56px"},{queue:false,duration:200});
 },function(){
  $("img",this).stop().animate({top:"0px"},{queue:false,duration:200});
 });
 
 $(".bottom div a").hover(function(){
  $("img",this).stop().animate({left:"-122px"},{queue:false,duration:200});
 },function(){
  $("img",this).stop().animate({left:"0px"},{queue:false,duration:200});
 });
})


具体的实例演示代码

 代码如下 复制代码



 


 


热门栏目