Quote (DirtyRasa @ Jan 27 2013 04:16pm)
You need to use anchor tags for the links, not divs/articles.
aka: <a href="#work">WORK</a>
I don't have any problem with the navigation scrolling! It scrolls smooth down/up to the category if i press on any navigation point. I have got a problem with the highlighting of the categorys.
By the way.. maybe i found the problem: [17:27:50.250] ReferenceError: $ is not defined @ /// index.html:52
Code
<script defer src="jquery.inview.js"></script>
<script type="text/javascript" language="javascript" charset="utf-8">
$(document).ready(function() { //// THIS LINE IS NOT DEFINED.
$('div.inview').bind('inview', function (event, visible) {
var ueberwachteElemente = $('div.inview');
ueberwachteElemente.each(function() {
vis = $(this).data('inview') || false;
if(vis) {
activeId = $(this).attr("id");
activeMenuItem = $('nav a[href$="'+activeId+'"]');
}
});
activeMenuItem.parents('li').siblings('li:has(.active)').find('a').removeClass('active').end().end().end().addClass('active');
});
});
</script>
Why it says $ is not defined?
This post was edited by rania on Jan 27 2013 10:30am