Hello all,
I know nearly nothing about this all so I turn to you for some desperately needed help. If you need to see any more code or info just ask and i'll answer asap.
the following code snippet is what im using for a photo gallery on:
http://luisposada.co.uk/home/photography-2/
The problem is the following the caption below the main picture appears on one click when you go through the thumbnails from left to right but on a double click only going from right to left. Obviously i want the captions to change no matter what order the thumbnails are clicked in and on a single click.
Thank you very much.
<script type="text/javascript">
$(function() {
$('#feature').cycle({
speed: 1000,
timeout: <?php echo $speed; ?>
});
$("#yc_thumbnail_frame a").live("click",function(){
$(".yc_img_fullsize").each(function(index) {
if ($(this).is(":visible")) {
var text = $(this).attr("alt");
$(".caption").html(text);
}
});
});
});
$(window).load(function() {
$("img.yc_img_fullsize").each(function(index) {
if ($(this).is(":visible")) {
var text = $(this).attr("alt");
$(this).parent().after("<p class='caption'>" + text + "</p>");
}
});
});
</script>