Hey there! I did some customizing on the visual index Format... And I'm trying to have the big pictures opened in the middle of the browser… using auto scroll... so that the browser automatically scrolls to the middle of the enlarged pictures...
I tried to do it with this script:
(function() {
"use strict";
var
baseurl = 'cyrill-kuhlmann.de',
path = 'cyrill-kuhlmann.de/files/gimgs/';
$(function() {
$('.picture_holder').ndxz_grow();
setTimeout('move_up()', 1);
$(".picture_holder a").click(function() {
$("html:not(:animated), body:not(:animated)").animate({
scrollTop: $(this).position().top()
}, 1000);
});
});
})();
It works, but not in the way i want it to…
Does someone have an idea?