0
我有一個響應下拉jquery菜單。出於某種原因,我刪除了一個重複的jquery庫,因爲它與WooCommerce相沖突,之後下拉響應菜單不起作用。JQuery響應下拉菜單問題
這裏是我的網站的鏈接:https://www.santa-film.eu/
正如你可以看到,如果你切換圖標點擊,菜單沒有顯示。 這裏使用jQuery腳本:
jQuery.fn.noSelect = function() {
var o = "none";
return this.bind("selectstart dragstart mousedown", function() {
return !1
}).css({
MozUserSelect: o,
msUserSelect: o,
webkitUserSelect: o,
userSelect: o
})
};
var ias = $.ias({
container: ".items",
item: ".item",
pagination: ".navigation",
next: ".nav-previous a"
});
ias.extension(new IASSpinnerExtension), $(document).ready(function() {
$(".dod").click(function() {
var o = $(this).attr("id");
1 == o ? ($(".menus").hide(), $(this).attr("id", "0")) : ($(".menus").show(), $(this).attr("id", "1"))
}), $(".menus").mouseup(function() {
return !1
}), $(".dod").mouseup(function() {
return !1
}), $(document).mouseup(function() {
$(".menus").hide(), $(".dod").attr("id", "")
})
}), $(document).ready(function() {
$(".rclic").click(function() {
var o = $(this).attr("id");
1 == o ? ($(".rmenus").hide(), $(this).attr("id", "0")) : ($(".rmenus").show(), $(this).attr("id", "1"))
}), $(".rmenus").mouseup(function() {
return !1
}), $(".rclic").mouseup(function() {
return !1
}), $(document).mouseup(function() {
$(".rmenus").hide(), $(".rclic").attr("id", "")
})
}), $(document).ready(function() {
$(".report").click(function() {
var o = $(this).attr("id");
1 == o ? ($(".reportform").hide(), $(this).attr("id", "0")) : ($(".reportform").show(), $(this).attr("id", "1"))
}), $(".reportform").mouseup(function() {
return !1
}), $(".report").mouseup(function() {
return !1
}), $(document).mouseup(function() {
$(".reportform").hide(), $(".report").attr("id", "")
})
}), $(document).ready(function() {
$(".buscaboton").click(function() {
var o = $(this).attr("id");
1 == o ? ($(".buscaformulario").hide(), $(this).attr("id", "0")) : ($(".buscaformulario").show(), $(this).attr("id", "1"))
}), $(".buscaformulario").mouseup(function() {
return !1
}), $(".buscaboton").mouseup(function() {
return !1
}), $(document).mouseup(function() {
$(".buscaformulario").hide(), $(".buscaboton").attr("id", "")
})
}), $(document).ready(function() {
$(".rclic2").click(function() {
var o = $(this).attr("id");
1 == o ? ($(".rbuscar").hide(), $(this).attr("id", "0")) : ($(".rbuscar").show(), $(this).attr("id", "1"))
}), $(".rbuscar").mouseup(function() {
return !1
}), $(".rclic2").mouseup(function() {
return !1
}), $(document).mouseup(function() {
$(".rbuscar").hide(), $(".rclic2").attr("id", "")
})
});
那麼,有沒有辦法讓下拉正常工作?
感謝
您可以使用CSS創建在懸停時打開的懸停菜單。但是你不能創建依賴於'onclick()'的菜單來在沒有javascript的情況下運行。爲什麼要刪除jQuery?正如LoicTheAztec所說,你需要提供更多信息。 – helgatheviking