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.
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.