Set footer offset for jquery


I’m using a script to display a floating menu. I don’t know how to set an offset for the footer so that it does not go all the way to the bottom. I’d like a 100px margin to the bottom of the screen. Here’s my code:

    function moveFloatMenu() {

        var menuOffset = + $(this).scrollTop() + "px";

    menuYloc = $('#floatMenu').offset();


I am completely off with this floating menu that how it works but did you try something like this?


Just a wild try only :stuck_out_tongue:

Yup, tried that. Didn’t work.

Found the solution with another jquery plugin, thanks all.