-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.js
53 lines (45 loc) · 1.8 KB
/
init.js
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
/**
* @author xnny
*/
var setTimeAction = false;
$('#added-games').mouseover(function () { showGameList(); });
$('#added-games').mouseout(function () { if (setTimeAction) {clearTimeout(setTimeAction);}; });
$('#game-list').mouseout(function () { hideGameList() });
$('#game-list').mouseover(function (){ $('#game-list').removeClass('hide');if (setTimeAction) {clearTimeout(setTimeAction); };});
//$(".game-category").click(function () { $('.show').removeClass('show');$(this).parent().find('ul').addClass('show'); });
function showCategory(obj)
{
$('.show').removeClass('show');
$(obj).parent().find('ul').addClass('show');
//alert(obj);//obj.parent().find('ul').addClass('show');
}
function showGameList()
{
$('#game-list').removeClass('hide');$('#added-games').addClass('added-games-hover');
var url = 'php.php';var today=new Date();var time = today.getSeconds();$.get(url, { date: time },
function(data){
//$('#loading_box').hide();
$('#games').replaceWith(data);
//alert("Data Loaded: " + data);
});
}
function f()
{
alert('xxxxxx');
}
function hideGameList()
{
setTimeAction = setTimeout(function (){hideGameListxx()}, 500);
}
function hideGameListxx()
{
$('#game-list').addClass('hide');
$('#added-games').removeClass('added-games-hover');
$('#games').replaceWith('<div id="games"><div class="loading"><img src="images/loading.gif"></div><div class="clear-both"></div></div>');
}
$("#top-game .slideshower").fadeTransition({pauseTime: 4000,
transitionTime: 1000,
ignore: null,
delayStart: 4000,
pauseOnMouseOver: true,
createNavButtons: true});