Does Levels have a sticky header available? Or can someone point me to a good method to implement? I'm actually needing to add a mid-page sticky menu. I've found Bootstrap examples, but...
Announcement
Collapse
No announcement yet.
Levels Sticky Header / Nav Bar
Collapse
X
-
Levels Sticky Header / Nav Bar
Leslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr
Tags: None
-
"sticky" is basically using a js/jquery event to apply a style (i.e, sticky) which has a 'position:absolute' parameter. you can trigger the event based on 'scroll'.
here is a jquery snippet. (sorry, not as up on JS as JQuery.)
Code:$(document).bind("scroll", function() { if ($(document).scrollTop() >= 300) { $("#sticky-header").addClass("sticky"); } });
Bruce Golub
Phosphor Media - "Your Success is our Business"
Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
phosphormedia.com
Comment