|
Usage
Instructions on installing and using JQuery Scroll Follow
Usage
<script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="ui.core.js"></script> <script type="text/javascript" src="jquery.easing.js"></script> <script type="text/javascript"> $( '#example' ).scrollFollow(); </script> <script type="text/javascript">
$( document ).ready( function () {
$( '#example' ).scrollFollow( {
speed: 1000,
offset: 60,
killSwitch: 'exampleLink',
onText: 'Disable Follow',
offText: 'Enable Follow'
} );
} );
</script><script type="text/javascript">
$( document ).ready( function () {
$( '#example' ).scrollFollow( {
container: 'outer'
} );
} );
</script> |
Sign in to add a comment
the "See Example" links are incorrect :(
Thank you. Fixed
in Firefox the container doesn't seem to work if the position is relative and the container is not the immediate container. i.e. div(container) > div > scrollobject. doesn't seem to work. have to prove again but in pre-existing page it's just scrolling right on through the container. position had to changed to relative to fix IE bug, it worked flawlessly in FF with position absolute