navigation.js
1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
$(document).ready(function(){
//导航
$(".sy1_ul .sy1_li").hover(
function(){
var index = $('.sy1_ul .sy1_li').index(this);
// $(this).addClass("sy1_li_bg").find(".sy2_ul").stop(true,true).fadeIn(350);
$(this).find(".sy2_ul").stop(true,true).fadeIn(350);
//select隐藏(i6下select始终在最上层的问题)
$(".searchselect").hide();
},
function(){
var index = $('.sy1_ul .sy1_li').index(this);
// $(this).removeClass("sy1_li_bg").find(".sy2_ul").hide();
$(this).find(".sy2_ul").hide();
//select 恢复显示
$(".searchselect").show();
}
)
$(".sy2_li").hover(
function(){
var index=$(this).children("ul").length;
if(index>0){$(this).addClass("sy2_li_h")}
$(this).find("ul:first").show() },
function(){$(this).removeClass("sy2_li_h").find("ul:first").hide()}
);
//导航下拉位置样式控制
$(".sy2_ul .sy2_li").addClass("bod_1");
});