Jump to content

jQuery plugin autoplay


regicidedelferoz

Recommended Posts

Good day everyone!

 

Can you guys help me regarding the autoplay for my plugin (carousel)? It is working when I only have 1 carousel, but whenever I have more than 1, autoplay is only working with the first carousel.

 

Attached is the copy of the said plugin.

 

 

 

 

Thanks in advance!

Regards,

Regicide Del Feroz

carousel.zip

Edited by Regicide Del Feroz
Link to comment
Share on other sites

You want us to go through a 44KB zip file, huh? How about you just find a plugin that was designed to support multiple instances on the same page? If I'm going to guess what is in that zip file, similar to what I find in 99% of the cases where someone found some plugin that only works if it's only on the page once, then I'm going to find some code that uses IDs to refer to various parts of the layout which is going to fall over whenever you try to put more than one on a page because you can't have multiple elements with the same ID.

Link to comment
Share on other sites

There's no error messages is displaying,. I am using jQuery's tutorial in creating a plugin. There's no error regarding the codes, the only problem is, autoplay feature is only applied with the first carousel whenever there's a multiple instances.

Link to comment
Share on other sites

If you want answers you need to make it easy for people to help you. When I ask you to see your code, instead of you pasting a single line of code why not just post your code? Why do we need to try and pull information out of you? If there is a problem with the code on your page, then how do you expect anyone to offer any solutions if you are not showing the code on your page?

Link to comment
Share on other sites

But i already posted the line of code i am using to add the plugin in my page just like what Ingolme asked.Here's the code again, sir.

$('.mj_carousel').mjCarousel();
Edited by Regicide Del Feroz
Link to comment
Share on other sites

Typically jQuery UI plugins act on a set of DOM elements as defined / expected by the plugin developer in their documentation. You still haven't show any the markup that your using. This is what is meant by showing all of your code. Any documentation for the plugin would also be useful.

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...