I need a jquery function that will scroll the page (from where the user currently is) by 100 pixels. Please note, this function does not scroll from the top, it scrolls from the current position.
so far i have :
<script type="text/javascript">
$(document).ready(function() {
$(window).scrollTop($(window).scrollTop()+100);
});
</script>
It doesn’t do anything.
Thanks to @HirstoYankov for partly helping.
Below is the code that fixed it:
Its important to use
$(window).loadand not$(document).ready