2012-04-03 65 views

回答

5

因为Click事件您直接致电slider_animate()你不打电话给你的插件

铬当你这样做的slide_widths变种是0,因为您定义并执行了事件功能外的分配逻辑,以便其静态的

你有2个选项把该行的功能slider_animate

var slide_widths = $(e).find('.holder > li:first').width(); 
//correct the variables name accordingly 

内或调用插件功能本身是imgSlider

0

那么在caraousel.js线路上无。 32

尝试使用的东西的代名词下面的代码,而不是一个本 我的意思是.animate()调用......应该是这样的动画({marginLeft:“233px”})

$('.browse.button.next.right').parent().find('.holder').children('li').eq('0').animate({marginRight: "-233px"}); 

这将作为先前的点击

$('.browse.button.next.right').parent().find('.holder').children('li').eq('0').animate({marginLeft: "233px"}) 

这将作为下一点击

,并在这两个铬这些语法工作和Firefox ..

+0

这里233px是图像的宽度...所以我们必须滑动 -/+ 233 px的图像div..for左/右遍历 – 2012-04-11 12:11:27