menu fixed on top of page after scrolling

General questions about CMSimple
Post Reply
bastingse
Posts: 308
Joined: Fri Jun 06, 2008 9:38 pm
Location: Netherlands
Contact:

menu fixed on top of page after scrolling

Post by bastingse » Sat Mar 21, 2015 2:36 pm

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.....

bastingse
Posts: 308
Joined: Fri Jun 06, 2008 9:38 pm
Location: Netherlands
Contact:

Re: menu fixed on top of page after scrolling

Post by bastingse » Sat Mar 21, 2015 3:01 pm

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 !!

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: menu fixed on top of page after scrolling

Post by cmb » Tue Mar 31, 2015 11:54 am

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.
Christoph M. Becker – Plugins for CMSimple_XH

bastingse
Posts: 308
Joined: Fri Jun 06, 2008 9:38 pm
Location: Netherlands
Contact:

Re: menu fixed on top of page after scrolling

Post by bastingse » Sun Apr 19, 2015 5:33 pm

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 :-(

maeg
Posts: 525
Joined: Fri Feb 20, 2009 2:27 pm
Location: Agerbæk, Denmark
Contact:

Re: menu fixed on top of page after scrolling

Post by maeg » Mon Apr 20, 2015 3:28 pm

Hi

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

bastingse
Posts: 308
Joined: Fri Jun 06, 2008 9:38 pm
Location: Netherlands
Contact:

Re: menu fixed on top of page after scrolling

Post by bastingse » Mon Apr 20, 2015 5:03 pm

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

lck
Posts: 2963
Joined: Wed Mar 23, 2011 11:43 am
Contact:

Re: menu fixed on top of page after scrolling

Post by lck » Tue Apr 21, 2015 9:47 am

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
„Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“   👉 Ludwig's XH-Templates for MultiPage & OnePage

bastingse
Posts: 308
Joined: Fri Jun 06, 2008 9:38 pm
Location: Netherlands
Contact:

Re: menu fixed on top of page after scrolling

Post by bastingse » Thu Apr 23, 2015 10:22 am

Thanks Ludwig for the tip, Thanks Svasti for the explanation! Well done!!

Post Reply