Something like:
http://home.comcast.net/~jscheuer1/s...sanyoung-h.htm
Note: I didn't know where the negative images were so I used the second image as a place holder for it, except for the second image, where I used the first image as a placeholder.
Use your browser's "view source" to get the code.
The base tag can be removed once the page is in its proper location.
Also Note: The version of jQuery used is too low to support the jQuery fade transition I'm familiar with. I updated to 1.4.4, but others would probably also work. The thing when picking a jQuery version for something like this is you generally want the latest sub version that doesn't break your existing code. And likewise the latest sub sub version. But 1.4.4 seems fine, so there's no need to worry about it unless a problem occurs.
The speed of the fade in for the negative/positive images is set here (from the added on page script code):
Code:
$(document).click(function(e){
if($(e.target).parent('.caption').size()){
var $curimg = $('.image-wrapper.current img').stop(true).eq(0), o = $curimg.position();
$('.image-wrapper.current img').not($curimg).remove();
$curimg.after(
$('<img style="position: absolute; top: 0; left: 0">')
.attr('src', e.target.href).css({top: o.top, left: o.left, opacity: 0})
.animate({opacity: 1}, {duration: 1500, complete: function(){$curimg.remove();}})
);
e.preventDefault();
}
});
Any questions - just ask.
Bookmarks