August 29th, 2009
Posted by Fred Wu
The jQuery Slideshow Lite plugin is updated with new features!
This is a major rewrite which fixed the known issue of not being able to change slides instantly via pagination clicks.
The new version also adds automatic photo caption display.
Enjoy! :)
I change the following code
// ----------------------------------------
// create anchor links to make the structure simpler for manupilation
// ----------------------------------------
$("> img", target).wrap(document.createElement("a"));
$("a", target).attr("target", options.anchorTarget);
to
$("> img",target).each(function(){
$(this).wrap(document.createElement("a"));
$(this).parent('a').attr("target", options.anchorTarget);
});
because i don’t like all the ‘a’ has the same ‘target’