So here is my setup. I have two columns on my page. In the left column, I have an accordion, and below I have text with links inside it. In the right column, I have some images that are controlled by links inside the text in the left column. Images can be scrolled.
On my page, I have an accordion that works great and is configured as
$( "#accordion" ).accordion({
autoHeight: false,
navigation: true,
change: function(event, ui) { dynamicOffsetValue(); }
});
Then I have a function that gives me the height of the div, which is wrapped around accoridon
function dynamicOffsetValue()
{
var top = $("#accordion").height();
}
dynamicOffsetValue();
Then I also have the localscroll plugin setting for images in the right column
var scrollOptions = {
target:div
offset:500,
axis: 'xy',
duration: 50,
easing: 'swing'
};
$('.scrollContainer').localScroll(scrollOptions);
, , , , , , . , 500 .
, , , dynamicOffsetvalue scrollOptions, , ( localscroll), ?
, .:)