Prinzhorn/skrollr-menu — pull request #25 by SuPa86000 (2013-10-28 22:24:59+00:00)
Title: Check Active Link Href

Just a idea for check the active link by href attribute. Works with several menu containing the same links.

Usage example :

```
skrollr.menu.init(app.skrollr.instance, {
[...]
activeSubstract: function(link) {
var href = $(link).attr('href');
if(href == '#services') return 180;
else return 80;
},
[...]
});

$(window).scroll(function(){
$('#navigation a[href='+skrollr.menu.getActiveHref()+']').addClass('active');
});
```