[jQuery] Re: Cycle Plugin - play/pause button?

2009-01-13 Thread amuhlou


Just in case anyone out there finds this post like I did and is still a
little lost, here's what I finally figured out after much trial, error, and
research (my jQuery knowledge is still limited so there are still a lot of
basic methods I don't know).

$('#pauseBtn').toggle(function() {

$('#headlineContent').cycle('pause');
$(this).attr({ src: "images/pause_inactive.gif"});

}, function() {

$('#headlineContent').cycle('resume', true);
$(this).attr({ src: "images/pause_slide.gif"});
});



Eric Greene wrote:
> 
> 
> Great thanks alot
> 
>> Here's a couple demos:
>>
>> http://www.malsup.com/jquery/cycle/pause.htmlhttp://www.malsup.com/jquery/cycle/hover.html
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Cycle-Plugin---play-pause-button--tp18349719s27240p21445539.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Cycle Plugin - play/pause button?

2008-07-08 Thread Eric

Great thanks alot

> Here's a couple demos:
>
> http://www.malsup.com/jquery/cycle/pause.htmlhttp://www.malsup.com/jquery/cycle/hover.html


[jQuery] Re: Cycle Plugin - play/pause button?

2008-07-08 Thread Mike Alsup

> Hi I am using the Cycle Plugin which is great.  I know you can set
> pause:1 in the function options so that you get a pause on mouse
> hovering over the image.  I was wondering if there is a way to set a
> play/pause function to some button in the page?

Here's a couple demos:

http://www.malsup.com/jquery/cycle/pause.html
http://www.malsup.com/jquery/cycle/hover.html