Skip to content
This repository has been archived by the owner on Apr 9, 2019. It is now read-only.

links vs. autoplay #38

Closed
cvc1968 opened this issue Feb 20, 2012 · 2 comments
Closed

links vs. autoplay #38

cvc1968 opened this issue Feb 20, 2012 · 2 comments

Comments

@cvc1968
Copy link

cvc1968 commented Feb 20, 2012

Unless I'm missing something, it seems that setting autoplay to 'true' breaks linkables. Is there any way to have an accordion autoplay but still have the links work? In my mind I can sort of see something involving the stop and play methods used on the links, and I may give that a try, but thought I would see if you already had a solution to this.
Thanks

@cvc1968
Copy link
Author

cvc1968 commented Feb 20, 2012

OK, yeah, it was actually easier than I thought it would be. This did the trick:

$("#mylinks a").hover(function() {
        $('#myaccordion').liteAccordion('stop');
    },function() {
        $('#myaccordion').liteAccordion('play');
});

@cvc1968 cvc1968 closed this as completed Feb 20, 2012
@nikki
Copy link
Owner

nikki commented Feb 20, 2012

This was a design decision. Imagine: you land on a page from Google, it has an autoplaying accordion on it. You let it play for a few slides, but the site isn't what you're looking for and you hit the back button. You'd have to hit back a whole bunch of times to page through all the slides that have been autoplaying - pretty annoying.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants