I'm trying to get captions on images (like so, but without the animation) within this JQuery slider, but without much success so far.
This is the HTML for the slider...
<div class="container-slideshow"><div class="slideshow">
<img src="img/pic2.jpg" width="300" height="200" />
<img src="img/pic3.jpg" width="300" height="200" />
<img src="img/pic4.jpg" width="300" height="200" />
<img src="img/pic5.png" width="300" height="200" />
</div></div>
...which is activated by:
<script type="text/javascript">
$('.slideshow').cycle({
fx: 'scrollLeft',
speed: 400,
pause: 1
});
I've tried wrapping each image in a div together with a caption div - like
<div><img src="img/pic2.jpg" width="300" height="200" /><div class="caption">Caption</div></div>
- but the image overrides the caption. Z-index doesn't make a difference. The images also don't allow CSS opacity, which tells me they are being dealt with in JQuery?
I don't know. Does anybody?
Thanks!