开发者

jQuery BBQ with next and previous buttons

开发者 https://www.devze.com 2023-03-13 15:36 出处:网络
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开发者_高级运维!

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

精彩评论

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