You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

Slideshow plugin - Dynamic interval Created Nov 4, 2009

This thread is solved

Views: 624     Replies: 4     Last reply Dec 14, 2009  
You must login first before you can use this feature

vmr

Posts: 6

Registered:
Oct 13, 2009

Slideshow plugin - Dynamic interval

Posted: Nov 4, 2009

I am using slideshow plugin. Trying to have value for the 'interval' attribute from a variable. I searched in the forums but could not find anything related.

Here is my code which does not take into account 'chosen_time_interval' variable set while running 'onBeforePlay' method.

$("div.tabs").tabs(".images > div", {
//load content through ajax
effect: 'ajax',
// start from the beginning after the last tab
rotate: true
// use the slideshow plugin. It accepts its own configuration
}).slideshow({
onBeforePlay: function(){
var chosen_time_interval = $("#time_interval").val()*1000;
},
clickable: false,
autoplay:false,
interval: chosen_time_interval //value 5000 or any works
});

My Play and Stop buttons are as follows.

<button onClick='$("div.tabs").tabs().play();'>Play</button>
<button onClick='$("div.tabs").tabs().stop();'>Stop</button>

Thanks for your help.

vmr

Posts: 6

Registered:
Oct 13, 2009

» Slideshow plugin - Dynamic interval

Posted: Nov 4, 2009

Reply to: Slideshow plugin - Dynamic interval, from vmrao
Is this forum alive ? I posted another thread yesterday and not even a single response yet. Can anyone please help.

vmr

Posts: 6

Registered:
Oct 13, 2009

» » Slideshow plugin - Dynamic interval

Posted: Nov 4, 2009

Reply to: » Slideshow plugin - Dynamic interval, from vmrao
I found the following thread where it says interval parameter can be updated dynamically on the scrollable tab using the code such as

http://flowplayer.org/tools/forum/35/20400

$(".scrollable").scrollable().getConf().interval = 0;

Is there any similar code for slideshow plugin ? I tried as follows but no luck.

$("div.tabs").tabs(".images > div").slideshow().getConf().interval

It looks like it is possible to update the interval parameter for tabs slideshow but I am not able to figure out how. Can anyone point me in the right direction. Thanks.

MacBee
I'm French... Sorry for my bad English, I use ' Google Translator' or other... but that remains that tools Wink

Posts: 7

Registered:
Aug 5, 2009

» » » Slideshow plugin - Dynamic interval

Posted: Nov 13, 2009

Reply to: » » Slideshow plugin - Dynamic interval, from vmrao
You can try this configuration :

effect: 'ajax',
fadeInSpeed: 200,
fadeOutSpeed: 1000,
interval: 5000,

tonny

Posts: 1

Registered:
Dec 14, 2009

Its work

Posted: Dec 14, 2009

Reply to: Slideshow plugin - Dynamic interval, from vmrao
Its work but you need to enable autoplay:true,

or read the documentation

This option(interval) is valid only when autoplay is enabled or the play() method is called.

peace