问题
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