jQuery - preventDefault() loading page -


i thought had stuck on last thing.

i have updated jsfiddle here - http://jsfiddle.net/q73nd/8/

i want to

  1. load thumbnails.
  2. start slideshow.
  3. stop , start buttons stop , start slideshow.
  4. 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(); }) 

updated fiddle


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -