Jump to content
Sign in to follow this  
regicidedelferoz

jQuery plugin autoplay

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

Share this post


Link to post
Share on other sites

I don't see any code attached

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

What code are you using to add everything to your page? If this is a question about how your code is working then I need to see your code.

Share this post


Link to post
Share on other sites

Not the plug-in's code, show the code you're using to add the plug-in onto your page. It should only be one or two lines of code, paste them into a forum post here.

Share this post


Link to post
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?

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

OK. Well, I don't have anything to say about that line of code. That doesn't tell me anything about why it's behaving the way you describe.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...