I have a website that is one page and the user navigates to each section using links that use the scrollto jquery plugin.
My problem: I want to show the active link in the main menu. Therefore, if you go to the contact form, the contact link will be highlighted. Now I can do it in jquery by adding a class after clicking. If this is done, if the user must manually go to another section, the contact link will still be active, which will be incorrect and misleading.
So, my thoughts would have to somehow decide which div id is currently in view. I really don't understand how to do this. Any ideas?
Michael
source share