Commonly used left navigation effects, JS is simple, and is designed to improve navigation performance. You can refer to the application.
Effect display:
HTML:
JS:
$(".menu_list li").mouseenter(function(){
$(".menu_box").show();
var nav_index = $(".menu_list li") .index(this);
$(".menu_cont").eq(nav_index).show()//The sliding menu corresponds to the current content
.siblings().hide();
});
$(".menu").mouseleave(function(){
$(".menu_box").hide();
}) ;
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn