Hiding and Showing Menu Header

Issues related to hyperlinks and web site navigation.
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/links.html
Post Reply
patterson
 
 
Posts: 2
Joined: Wed Feb 05, 2020 5:46 pm

Hiding and Showing Menu Header

Post by patterson » Wed Feb 05, 2020 5:53 pm

I am using the onscroll event to hide the menu header when the user starts to scroll the page and that is working fine, but how do I get it to show when scrolling back up? I did not see onscrollup or onscrolldown events.

User avatar
Pablo
 
Posts: 23034
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Hiding and Showing Menu Header

Post by Pablo » Wed Feb 05, 2020 6:08 pm

There is no event for this in HTML as far as I know, so this will require a script that keeps track of the scroll direction.

patterson
 
 
Posts: 2
Joined: Wed Feb 05, 2020 5:46 pm

Re: Hiding and Showing Menu Header

Post by patterson » Wed Feb 05, 2020 7:22 pm

Okay, well I will have to go about this another way using a bookmark object and event trigger on onscrollhide and onscrollreveal actions.

Thank you for your response.

User avatar
iamafireman
 
 
Posts: 91
Joined: Mon May 26, 2008 2:41 am
Location: Tennessee

Re: Hiding and Showing Menu Header

Post by iamafireman » Sun Feb 23, 2020 9:13 pm

Have you figured out a solution? I have been trying the samething, I think, but with no luck.

alan_sh
 
 
Posts: 750
Joined: Tue Jan 01, 2019 5:50 pm

Re: Hiding and Showing Menu Header

Post by alan_sh » Sun Feb 23, 2020 11:48 pm

Why not just let it scroll off the page when you scroll down?

Alan

User avatar
BaconFries
 
 
Posts: 5234
Joined: Thu Aug 16, 2007 7:32 pm

Re: Hiding and Showing Menu Header

Post by BaconFries » Mon Feb 24, 2020 12:29 am

From what you are asking this may be what you are looking for...
https://codepen.io/tutsplus/pen/WNerWWp

User avatar
crispy68
 
 
Posts: 1360
Joined: Thu Oct 23, 2014 12:43 am
Location: Acworth, GA
Contact:

Re: Hiding and Showing Menu Header

Post by crispy68 » Mon Feb 24, 2020 1:39 am

If Bacon's suggestion is what you are looking for, check out RZ's extension which does the same:

viewtopic.php?f=53&t=64238

User avatar
iamafireman
 
 
Posts: 91
Joined: Mon May 26, 2008 2:41 am
Location: Tennessee

Re: Hiding and Showing Menu Header

Post by iamafireman » Thu Feb 27, 2020 5:30 am

I was trying to do something similar to this page.
https://www.realtor.com/realestateagent ... _364084422
When you scroll down alittle a different header shows.
Now on this page if you click on "contact info" and then "view website" that will take you to the site I built and my solution I came up with

Post Reply