My site is www.jeremyspence.net78.net. As you scroll down I want to make the main menu dissapear(the one menu you see now) and another smaller menu (kinda like the apple menu from apple.com) appear on the top that is fixed, I was thinking about making a sticky menu, but I want the menu to appear at the top when you scroll not just stick to the top from another point on the screen. Does anyone know how to make a menu appear when you scroll, or any tutorials that teach you how? Thanks
jspence29
0
Junior Poster in Training
Recommended Answers
Jump to Postyou want to get the offsetTop preoprty of the main menu than get the scrollbar position. If the scrollbar is down more pixels than the main menu, add your top menu. Here is a small example in jQuery (untested):
var main_menu_top = $('#main_menu').offset().top; //Change the number …
All 4 Replies
JorgeM
958
Problem Solver
Team Colleague
Featured Poster
GliderPilot
33
Posting Whiz
jspence29
0
Junior Poster in Training
JorgeM
958
Problem Solver
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.