Page 1 of 1

menu fixed on top of page after scrolling

Posted: Sat Mar 21, 2015 2:36 pm
by bastingse
On previous topic http://cmsimpleforum.com/viewtopic.php?f=5&t=8591 we did discuss the way a menu stayed on top of the window with the "fixed" option. Now i would liek to know if it would be easy to do the following:

When a menu is half way the page and you scroll down the page normally the menu will disappear when it is on top of the page. Is it possible that as soon as the menu arrive on the top of the page, it will stay there?? Sorry folks, my English is so bad that i can't explain it better.
If you see the horizontal menu on my cmsimpel page: http://bastingswebdesign.nl, it would be nice if you scroll down, that the menu will always be visible....
I did search a lot already but i do not know the terms to search for.....

Re: menu fixed on top of page after scrolling

Posted: Sat Mar 21, 2015 3:01 pm
by bastingse
Found some:
http://www.backslash.gr/content/blog/we ... ith-jquery

http://jsfiddle.net/adamb/F4BmP/

Going to try some and get back here if it works !!

Re: menu fixed on top of page after scrolling

Posted: Tue Mar 31, 2015 11:54 am
by cmb
bastingse wrote:Found some:
http://www.backslash.gr/content/blog/we ... ith-jquery

http://jsfiddle.net/adamb/F4BmP/

Going to try some and get back here if it works !!
Nice effect! With regard to CMSimple_XH's admin menu, it might be easiest to activate the respective JavaScript only in the front-end.

Re: menu fixed on top of page after scrolling

Posted: Sun Apr 19, 2015 5:33 pm
by bastingse
As promise, here is the result: http://www.aliviocoaching.nl/index.php

Now i wonder how i can use the dropdown menu with dhtml.navi in this jquery function. I did try it but it didn't work :-(

Re: menu fixed on top of page after scrolling

Posted: Mon Apr 20, 2015 3:28 pm
by maeg
Hi

Looks great - can U make that menufix as a addon to cmsimple

Re: menu fixed on top of page after scrolling

Posted: Mon Apr 20, 2015 5:03 pm
by bastingse
maeg wrote:Hi

Looks great - can U make that menufix as a addon to cmsimple
Sorry, but i can't..... i'm not that handy :-)
It is not that much work to do it..... please visite http://www.backslash.gr/content/blog/we ... ith-jquery

Re: menu fixed on top of page after scrolling

Posted: Tue Apr 21, 2015 9:47 am
by lck
bastingse wrote:Now i wonder how i can use the dropdown menu with dhtml.navi in this jquery function. I did try it but it didn't work
Maybe this will help: svastis Tutorial - Horizontal drop down menu

Re: menu fixed on top of page after scrolling

Posted: Thu Apr 23, 2015 10:22 am
by bastingse
Thanks Ludwig for the tip, Thanks Svasti for the explanation! Well done!!