Files
scummvm-web/javascripts/screenshots.js
T
Eugene Sandulenko d429c48de0 Website rewrite from Fredrik Wendel
svn path=/web/trunk/; revision=40814
2009-05-23 18:45:30 +00:00

22 lines
506 B
JavaScript

$(document).ready(function() {
/* Change the links so slimbox2 can use them. */
$('a[rel^=lightbox] img').each(function (i, img) {
img.parentNode.href = img.src.replace('.jpg', '-full.png');
});
/* Activate slimbox on the images. */
$("a[rel^=lightbox]").slimbox(
{
captionAnimationDelay: 1,
initialHeight: 500,
initialWidth: 660,
loop: true,
resizeDuration: 200
},
null,
function (el) {
return (this == el) || ((this.rel.length > 8) && (this.rel == el.rel));
}
);
});