lavalamp jquery not linking through

社会主义新天地 提交于 2019-12-12 02:12:03

问题


I'm struggling getting my lavalamp to work on a site i'm redesigning. the jquery and links were taken from the previous site but they're not working when you click on them.

note all pages aren't finished yet, about us page is live on the site to check

www.alwaystwisted.com/sandbox/stagecraft/index.html

any ideas?

I'm sure it's something simple, but still too complext for me.

thanks in advance

Stu


回答1:


Your returning false when the link has been clicked!

 $("#1, #2, #3").lavaLamp({
                fx: "backout", 
                speed: 600,
                click: function(event, menuItem) {
                    //this stops the link from following
                    return false;
                }
            });



回答2:


just replace the "false" with "true"

So it will be return true;




回答3:


doesn't deleting the line

"return false;"

also fix it?




回答4:


Use this code, it solves the problem:

var $tlt = jQuery.noConflict();
$tlt(function() {
    $tlt('.lavamenu').lavalamp( ... );


});


来源:https://stackoverflow.com/questions/1322902/lavalamp-jquery-not-linking-through

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!