Malsup Cycle jQuery plugin - problem with caption
hi,
first off i'd just like to say what an absolutely superb plug-in this is... so simple to use and with so much customisation...
i'm having a small problem with getting the captions to display from a slideshow... i've got multiple slideshows on the page which i guess could be causing the problem... i'm not getting any errors, but no caption is being displayed...
here is a section of my html.... can anyone suggest what i might be doing wrong...
- <script>
- $(document).ready(function() {
- $('#cat_slide1').cycle({
- fx: 'scrollHorz',
- timeout: 0,
- next: '#next1',
- prev: '#prev1',
- after: function() {
- $('#caption1').html(this.alt);
- }
- });
-
- $('#cat_slide2').cycle({
- fx: 'scrollHorz',
- timeout: 0,
- next: '#next2',
- prev: '#prev2',
- after: function() {
- $('#caption2').html(this.alt);
- }
- });
- });
- </script>
- <div id="cat_slide1" class="cat_slide_content">
- <div class="slide_item"><img src="db/content/sica.jpg" alt="new 1 brief"></div>
- <div class="slide_item"><img src="db/content/bench1.jpg" alt="new 2 brief"></div>
- <div class="slide_item"><img src="db/content/table1.jpg" alt="new 3 brief"></div>
- </div>
- <div class="control_holder">
- <div class="slide_controls"><img src="images/but_left.gif" width="31" height="32" style="margin-right:40px;" id="prev1"><img src="images/but_right.gif" width="31" height="32" id="next1"></div>
- <div id="caption1" class="caption_text"></div></div>
- <div id="cat_slide2" class="cat_slide_content">
- <div class="slide_item"><img src="db/content/mozar1.jpg" alt="new 4 brief"></div>
- <div class="slide_item"><img src="db/content/sica.jpg" alt="new 1 brief"></div>
- <div class="slide_item"><img src="db/content/bench1.jpg" alt="new 2 brief"></div>
- <div class="slide_item"><img src="db/content/table1.jpg" alt="new 3 brief"></div>
- </div>
- <div class="control_holder">
- <div class="slide_controls"><img src="images/but_left.gif" width="31" height="32" style="margin-right:40px;" id="prev2"><img src="images/but_right.gif" width="31" height="32" id="next2"></div>
- <div id="caption2" class="caption_text"></div></div>
as you can see i have here 2 slideshows, each with their own navigation controls... this works perfectly... for some reason though the caption divs remain empty...
thanks in advance for any help :)
dog