maxal95 maxal95 - 10 days ago 6
jQuery Question

Jquery, Javascript click menu doesnt work on IE and Safari

i´ve created this little menu demo and it works fine on firefox and Chrome. But the function (".class").cick( function() does nothing at IE and Safari.
Maybe someone can help? I´ve tried .live .on("click",".class") etc.. nothing works.
you need to scratch the menu like this

CODE (Javascript)

/*Desktopvariante*/
if ((($(window).width() > 970) && test == 90) || (($(window).width() > 970))) {

$(function () {

$(".ClickLevel1").click(function () {


$(this).addClass("activeFarbe");

$(".navLevel1").addClass("activePfeil", 400);

$("#listLevel1").show("slide", {direction: "right"}, 350);
return false;
});

});



$(function () {
$(".ClickLevel2").click(function () {


$(this).addClass("activeFarbe");

$(".navLevel2").addClass("activePfeil",400);


$("#listLevel2").show("slide", {direction: "right"}, 350);
return false;
});


});

$(function () {
$(".ClickLevel3").click(function () {

$(this).addClass("activeFarbe");

$(".navLevel3").addClass("activePfeil",400);


$("#listLevel3").show("slide", {direction: "right"}, 350);
return false;
});
});


}


}

Answer

problem solved (screen.orientation.angle) cant be read by safari and IE

Comments