Hi
I'm using the Supersized jQuery image slider plugin found
here.
I'm loading images into the plugin using AJAX:
- function red(){
- $.ajax({
- type: 'GET',
- url: 'ajax.php?action=red',
- cache : false,
- success: function(data){
- if (data != "") {
- $('#supersized').html('');
- $.supersized({
- slides : eval("(" + data + ")"),
- });
- }
- }
- })
- }
However, when I then run the query again to replace the images. The images load fine, but the play button no longer responds. And the more I call the AJAX query, the more the slide interval becomes awry (speeds up).
I've setup a test site
here - click "Doeet" in the top left and then try click the play button to pause.
I found a potential answer
here but I couldn't get it to work.
Any ideas?
Cheers