views:

235

answers:

3

Hi

I'm currently working on a website for a Danish company. The content is all in one page and I've included some jQuery-scrolling and stuff. Works nice!

For the menu I'm asked to programme the elements so the active element is bold. That I've done too.

The problem comes here:
The client wants a home button and a next and previous button. But when I click them and the page scrolls the CSS-classes do not change for the active element - so the bold element in the menu is still the last clicked page.

I hope that anyone can help.

The page can be seen at: http://vedelform.dk/new/intro/

A: 

You used minified version of scripts so it is very hard to debug the code. Also you didnt give us name of plugin you use. I think there is a bug in plugin. Because css class "selected" sould jump from one menu item to another.

Eldar Djafarov
The plugin is serialScroll: http://flesler.blogspot.com/2008/02/jqueryserialscroll.html
Crescent Fresh
+1  A: 
Jason Francis
would you care to help with my script?
Kræn Bech-Petersen
Sure, I'll look at it again tonight.
Jason Francis
Thank you! It works perfectly!
Kræn Bech-Petersen
A: 

@Jason Francis: You're probably right. I'm not that much into jQuery and Javascript and what I've done so far is more luck than it's knowledge. I did A LOT of trial and error.
I understand what you're saying about getting the serialScroll plugin to figure out what element to call changeActiveStates on - but I seriously don't know how to do that.