FYI this functionality also works great with the pagination plagin you only need to modify it a bit
the pagination plugin returns a span for the first item, this needs to be changed to a standard link var lnk = $("<a class='active'>"+(appendopts.text)+"</a>") and because the click handler is handled by the serialscroll plugin you need to delete that from the pagination plugin as well //.bind("click", getClickHandler(page_id)) so in my case i first call the pagination plgin to create a nr of links based on the nr of items in my news dataset , adn then i call the serialscroll to make this into a scroller and attach the navigation to the before created paging links Armand On Tue, Oct 14, 2008 at 2:59 PM, Ariel Flesler <[EMAIL PROTECTED]> wrote: > > Nope, I thought I had a snippet for this on the "Doctorate on..." > post, it seems I forgot to add this one. > > Will do as soon as I can. > > -- > Ariel Flesler > http://flesler.blogspot.com > > On Oct 14, 6:13 am, "Armand Datema" <[EMAIL PROTECTED]> wrote: > > Thanks thats about how I solved it also just wanted to check if somehow > this > > was allready included int he plugin and I missed it > > > > Armand > > > > > > > > On Fri, Oct 10, 2008 at 10:33 PM, Ariel Flesler <[EMAIL PROTECTED]> > wrote: > > > > > You have 2 options. > > > > > - Binding externally: > > > var $links = $('#navigation a').click(function(){ > > > $links.removeClass('selected'); > > > $(this).addClass('selected'); > > > }); > > > > > - Using the onBefore callback. > > > > > I think the first one is simple and safe. I'd go for that. > > > > > Cheers > > > > > -- > > > Ariel Flesler > > >http://flesler.blogspot.com > > > > > On Oct 9, 8:37 am, "Armand Datema" <[EMAIL PROTECTED]> wrote: > > > > Hi > > > > > > I am using the serialscroll on my site to page through a news > resultset. > > > I > > > > am using the naviagation option that automatically turns a given list > > > into > > > > the naviagation for this scroller. > > > > > > However I would like to have the link in the ul have a new class when > its > > > > clicked so I can style this differently, whats the best way to do > this. > > > > > > thanks in advance > > > > > > Armand > > > > -- > > Armand Datema > > CTO SchwingSoft > -- Armand Datema CTO SchwingSoft