views:

295

answers:

2

Hi,

I'm using the jQuery cycle plugin and want to display the current state of the slideshow (pause / continue) in a separate span.

Now I don't find an event that is triggered when the slidehow pauses or unpauses, to set the corresponding text.

How can I achieve this?

A: 

I think your best bet it to wrap the code that handles the pausing to change the span's text.

function pauseCycle() {
  $("#cyclestatus").html("Paused");
  $("#cycle").cycle("pause");
}

Really, beyond that, you might have to actually edit the cycle plugin source. There doesn't seem to be an easy way to hook into the pause/unpause process.

monksp
A: 

There was now way around modifying the original plugin source to hook into the internal pause/resume actions. I added them and will provide the changes to the original authors so that they can extend the plugin with this functionality if wanted.

Sebastian P.R. Gingter