Recent activity
Subscribe to this feed
johnpg82 replied on January 09, 2009 18:43 to the question "Overflow Scrollfollow" in Net Perspective:
Nevermind I figured it out. I had to modify the jquery.scrollFollow.js. I modified
From
var pageScroll = $( document ).offset().top;
To
var pageScroll = $( "#master_container" ).offset().top;
AND
From
$( document ).scroll( function ()
{
ani( box, initialTop );
}
);
To
$( "#master_container" ).scroll( function ()
{
ani( box, initialTop );
}
);
#master_container being the id of the div that scrolls.
Now if you want the object to scroll when the body scrolls also you would probably have to keep both sets of code. This is just a guess and is untested.
johnpg82 asked a question in Net Perspective on January 09, 2009 18:32:
Overflow ScrollfollowI have a div that I have set to overflow auto and when I try to use the autoscroll it will only scroll if the body scrolls but I can't get it to work if the "master_container" scrolls
Loading Profile...
