如何在图像幻灯片放映中从左到右滑动div?

时间:2011-01-06 07:54:52

标签: javascript jquery

我是javascript和jquery的新手。我已经下载了fadeslide show。我对幻灯片放映很好。但是每张图片的描述都是从底部滑动到图像上。但我需要从左边开始。所以请帮助我。

代码如下。

showhidedescpanel:function(state,animateduration){   var setting = this.setting   var endpoint =(state ==“show”)? setting.dimensions [1] -setting.panelheight:this.setting.dimensions [1]   设置。$ descpanel.stop()。animate({top:endpoint},(typeof animateduration!=“undefined”?animateduration:fadeSlideShow_descpanel.slidespeed),function(){    if(setting.descreveal ==“always”&& state ==“hide”)     设置。$ restorebutton.css({visibility:'visible'})//显示恢复按钮   })

1 个答案:

答案 0 :(得分:0)

showhidedescpanel:

function(state,animateduration){var setting = this.setting var endpoint =(state ==“show”)? setting.dimensions [1] -setting.panelWidth:-this.setting.dimensions [1] setting。$ descpanel.stop()。animate({left:endpoint},(typeof animateduration!=“undefined”?animateduration:fadeSlideShow_descpanel。 slidepeed),function(){if(setting.descreveal ==“always”&& state ==“hide”)设置。$ restorebutton.css({visibility:'visible'})})

试试这个。由于代码不完整,我无法提供太多帮助。