jQuery - preventDefault() loading page -
i thought had stuck on last thing.
i have updated jsfiddle here - http://jsfiddle.net/q73nd/8/
i want to
- load thumbnails.
- start slideshow.
- stop , start buttons stop , start slideshow.
- click thumbnail , slideshow loads image.
i'm stuck on last point - if click thumbnail loads image in new window.
$('thumbs a').click(function(e){ bigimg.attr('src',$(this).attr('href')); e.preventdefault(); })
why load image in new window.
you missed #
target div
id thumbs
:
$('#thumbs a').click(function(e){ bigimg.attr('src',$(this).attr('href')); e.preventdefault(); })
Comments
Post a Comment