FridaSofia
FridaSofia

Reputation: 23

Use javascript to mark current menu item

I'm working on this site http://fridasofia.se/wand/ and have used JavaScript to mark the current menu item with an arrow.

The problem is that if you use the scrollbar to scroll the page, instead of clicking the menu, the arrow that marks current menu item doesn't follow. How do I make it work?

Thanks /Frida

Upvotes: 0

Views: 478

Answers (2)

Deadlykipper
Deadlykipper

Reputation: 878

I recommend looking at the jQuery Waypoint plugin http://imakewebthings.com/jquery-waypoints/

It should have what you need.

Upvotes: 1

Samich
Samich

Reputation: 30115

Such plugins called ScrollSpy. Here is most popular

Upvotes: 1

Related Questions