开发者

Why does nothing happen when clicking Lavalamp menu (in jQuery & ASP.net)?

I just made a lavalamp menu with jQuery. The problem is when I click on the menuitems nothing happens. But I have to navigate to another page. This is the HTML code:

    <ul 开发者_StackOverflow社区class="lavaLampNoImage" id="1">
        <li class="current"><asp:HyperLink ID="hplMeldingen" runat="server" 
            NavigateUrl="~/Overzichtscherm.aspx">Overzicht</asp:HyperLink></li>
        <li><asp:HyperLink ID="hplRapporteringen" runat="server" 
            NavigateUrl="~/Rapporteringen.aspx">Rapporteringen</asp:HyperLink></li>
        <li><a href="/Overzichtscherm.aspx">Travel</a></li>
    </ul>

This is the jQuery code:

$(function() {
        $("#1, #2, #3").lavaLamp({
            fx: "backout",
            speed: 700,
            click: function(event, menuItem) {
                return false;
            }
        });
    });

Can someone help me please? Thank you in advance!


return false cancels the click action

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜