If statement + mouseleave How to?
Hi, how i can make work this code, please?
I'm new of JQuery scripting and nobody can help me with this code:
//----------------------------------------------------------------------------------------------
// <!--Menu 1 -->
$(document).ready(function() {
$("#ldheMasterHotSpotMenu1").delay(50000).mouseenter(function(){
// $("#ldheMasterHotSpotMenu1").mouseenter(function(){
$("#ldheMasterPictureSelettore").animate({opacity: "0.5", width: "30", left: "3"}, 200);
$("#ldheMasterPictureSelettore").animate({opacity: "1", width: "60", left: "3"}, 200, function(){
$("img","#ldheMasterPictureSelettore").delay(50).height(30).width(60);
$("#ldheMasterLayerMenu1_1").delay(80).slideDown(300);
});
})
if((!$("#ldheMasterLayerMenu1_1").mouseleave()==true ) && (!$("#ldheMasterHotSpotMenu1").mouseleave()==true)){
$("img","#ldheMasterPictureSelettore").height(30).width(60);
$("#ldheMasterPictureSelettore").animate({opacity: "0.5", width: "30", left: "3"}, 200);
$("#ldheMasterPictureSelettore").animate({opacity: "1", width: "60", left: "3"}, 200, function(){
$("#ldheMasterLayerMenu1_1").slideUp(50).delay(100);
});
};
return false;
});
//----------------------------------------------------------------------------------------------
Regards.