开发者

adding onclick action aswell as hover with jquery tabs

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜