开发者

adding onclick action aswell as hover with jquery tabs

开发者 https://www.devze.com 2023-04-12 00:38 出处:网络
im trying to make the jquery tabs so on hover it changes the tabbed conte开发者_高级运维nt but on click it takes you to another page? this is what ive got but obviously it doesnt work any help?? cheer

im trying to make the jquery tabs so on hover it changes the tabbed conte开发者_高级运维nt but on click it takes you to another page? this is what ive got but obviously it doesnt work any help?? cheers!!

$("#tabs").tabs({
    event: "mouseover"
});

$(document).ready(function() {
    $('#secondary-navigation li a').click(function() {
        var over = '';
        $(this).attr('title', $(this).attr('title'));
        $(this).attr('href', $(this).attr('title'));
        return true;
    }, function() {
        $(this).attr('href', $(this).attr('title'));

    });
});
0

精彩评论

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

关注公众号