jQuery cycle thumbnails ?
Hi all
I have a demo here (not in Wordpress) where I'm using the jQuery cycle plugin to create the slideshow and the thumbnails.
http://www.ttmt.org.uk/forum/wordpress/
I want to create the same thing in Wordpress
http://www.ttmt.org.uk/wordpress/
Here I have one page with the images added directly to the content of the page.
I'm using the same cycle code as the non-wordpress page.
The image placeholders are added for the thumbnails but not the images.
Can anyone see why the thumbnails are not shown?
Is there another way to do this.
I tried to use Wordpress plugins to do this but they all limited the slideshow images to being the same dimensions. I need the images to be different sizes.
--UPDATE--
The home page has this php that simply outputs the page content. The images have been added directly to the page
<div id="content">
<?php if(have_posts()) : while(have_posts()) : the_post(); ?>
<div id="slideshow">
<?php the_content(); ?>
</div><!-- #slideshow -->
<div id="thumbWrap">
<ul id="thumbs">
</ul>
</div>
<?php endwhile; endif;?>
</div><!-- #content -->
This the jquery I'm using to try and create the thumbnails. I'm using Timthumb to resize the thumbs.
<script type="text/javascript">
$(window).load(function() {
$('#slideshow').cycle({
fx: 'fade',
speed: 800,
timeout: 3000,
pause: 1,
pager: '#thumbs',
pagerAnchorBuilder: function(idx, slide) {
return '<li><a href="#"><img class="imgThumb" src="<?php bloginfo('template_directory'); ?>/thumb/thumb.php?src="' + slide.src + '"&h=50&w=50px&zc=1" /></a></li>';
}
});
});
</script>