list.js
926 Bytes
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
define(function( require, exports, module ) {
/*
引入包
*/
var _Tools = require("tools"),
_Droll = require( "droll" );
$(function(){
/**
* 界面显示
*/
var rolling = _Tools.sollView({
leftBtn : $(".page-left"),
rightBtn : $(".page-right"),
sollView : $("#move-list ul"),
view : $("#move-list"),
callBack : function(index, max){
$(".page-num").html(((-index)+1)+"/"+max);
}
});
//子分类显示
var cache = false;
$( ".conditions-third span" ).bind({
mouseenter: function(){
var c = $(this).find(".third-children");
if ( c.hasClass("third-children") ){
$(this).addClass("on");
$(this).find('>a').addClass('on');
c.show()
cache = true;
}
},
mouseleave: function(){
if ( cache ){
$(this).removeClass('on');
$(this).find('>a').removeClass('on');
$( '.third-children' ).hide()
cache = false;
};
}
});
});
});