![]() |
multiple jquery slideshows on one page
Hello,
I'm trying to add two slide shows on to a page using a jquery plugin. I've tried a number of ways to do this without success, can anyone give me a solution to this problem? Code:
<script>Thanks for any solutions to this. |
Well, the code has selectors that are too general. For example, if you have several slideshows, how should it know which
.caption to address if all it say is “address the element with class .caption, anywhere in the document”? Either you copy the function and change the selectors for each specific slideshow or you work with the each() function, like:Code:
$('.slides').each(function() { |
Ok solution found, and it was staring me in the face and way too easy, how silly this javaScript malarkey is.
Thanks for your swift reply. What i did is copied the entire code and added: $(function(){ $('#slides_two').slides({ Then added the #slides_two id to html and css put in my styling and hey presto it all works, probably not the most elegant solution but it works. Yours seems far more elegant and efficient. Thanks again. |
| All times are GMT +1. The time now is 12:10 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.