开发者

jQuery Tools Scrollable

I feel like this has already been answered and implemented, but I cannot figure out the right terms or keywords to find it.

I'm using Scrollable as a subnav of sorts here: http://www.thepit-raleigh.com/press/

It shows 5 items at a time. How do I make it that the current page's link/image in the scrollable is visible when I'm on that given page.

Example, the 6th page/link (http://www.thepit-raleigh.com/press/herald-sun/) currently does not show when on that page开发者_StackOverflow社区 as it's the 6th item in the scrollable.

Thanks in advance, Keefer


You should be able to use the seekTo(index, speed) function. eg:

<script>
    $(window).load(function() {
        var api = $(".subnavScrollable").data("scrollable");
        api.seekTo(5, 1000);    
    });
</script>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜