HTML:

Home >Web Front-end >JS Tutorial >Commonly used left navigation effects implemented in js_javascript skills

Commonly used left navigation effects implemented in js_javascript skills

WBOY
WBOYOriginal
2016-05-16 17:19:481358browse

Commonly used left navigation effects, JS is simple, and is designed to improve navigation performance. You can refer to the application.

Effect display:
Commonly used left navigation effects implemented in js_javascript skills
HTML:

Copy code The code is as follows:

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