开发者

jQuery BBQ with next and previous buttons

How would one go about applying jQuery BBQ links to a page that doesn't use numbered tabs, but instead uses previous and next buttons to change the corresponding content areas? Thanks开发者_高级运维!


You need to be more specific but basically the previous and next buttons would just need to change window.location.hash and the following function would pick up that change:

$(window).hashchange(function() {   
    var hash = window.location.hash;

    // deal with the hash here
});

$(window).hashchange();
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜