Menu stuck on top when scroll down
3 posters
Page 1 of 1
Menu stuck on top when scroll down
Hello. I want the menu bar, when you scroll down, as soon as you pass the menu bar, to stuck up on the top.
This is the menu bar
As soon as you pass it when you scroll down to stuck on the top. Can this happen?
This is the menu bar
As soon as you pass it when you scroll down to stuck on the top. Can this happen?
Re: Menu stuck on top when scroll down
bump
Forum of the Forums Forumotion Rules | Tips & Tricks | FAQ | Did you forget your password? |
*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
Re: Menu stuck on top when scroll down
βρε τον Μαριο..
σε πετυχαινω μετα απο πολυ καιρο.
ωραιο φορουμ εχεις φτιαξει.
Hey buddy, here are some codes for that nav bar u talking about:
css
templates → overall_header
when u find
make it:
Tell me if that works, im using punbb aswell
σε πετυχαινω μετα απο πολυ καιρο.
ωραιο φορουμ εχεις φτιαξει.
Hey buddy, here are some codes for that nav bar u talking about:
css
- Code:
Codes Removed
templates → overall_header
when u find
- Code:
<!-- END switch_desc -->
- Code:
<!-- BEGIN switch_ticker_new -->
make it:
- Code:
Codes Removed
Tell me if that works, im using punbb aswell
Last edited by J0k3R^ on April 19th 2014, 10:37 am; edited 1 time in total
Re: Menu stuck on top when scroll down
Hello Marios,
Try this :
Modules > Javascript codes management > create a new script
Title : what you wish
Placement : in all the pages
Paste the code below and save :
Adjust 220 to change the amount of scrolling it takes until the nav is fixed.
Try this :
Modules > Javascript codes management > create a new script
Title : what you wish
Placement : in all the pages
Paste the code below and save :
- Code:
$(function() {
var scrollNav = function() {
var scroll = $(window).scrollTop();
if (scroll >= 220) $('#primary_nav').attr('style','position:fixed;top:0px;left:0;right:0;z-index:20000;');
if (scroll < 220) $('#primary_nav').removeAttr('style');
};
scrollNav();
$(window).scroll(function() { scrollNav() });
});
Adjust 220 to change the amount of scrolling it takes until the nav is fixed.
Re: Menu stuck on top when scroll down
Hello JokeR^. Unfortunately, your code did not work as wanted.
Hello Ange. Thanks for the code works fine! Topic solced!
Hello Ange. Thanks for the code works fine! Topic solced!
Forum of the Forums Forumotion Rules | Tips & Tricks | FAQ | Did you forget your password? |
*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
Re: Menu stuck on top when scroll down
You're welcome
If you ever need one that works along with the FA toolbar let me know.
Topic solved and archived
If you ever need one that works along with the FA toolbar let me know.
Topic solved and archived
Similar topics
» I’m stuck on mobile and my menu is gone
» Stuck out of my forum NEED SERIOUS HELP
» New topic is stuck.
» Stuck - Calendar view?
» Scroll to Top
» Stuck out of my forum NEED SERIOUS HELP
» New topic is stuck.
» Stuck - Calendar view?
» Scroll to Top
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum