-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
169 lines (129 loc) · 4.05 KB
/
index.html
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<!DOCTYPE html >
<html lang="en">
<head>
<meta charset="UTF-8">
<title>w伟 ❤ sz月🌙</title>
<script type="text/javascript" src="js/balloon.js"></script>
<style>
html, body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
div {
position: absolute;
border-radius: 50%;
}
audio {
position: absolute;
left: 10px;
bottom: 10px;
}
</style>
<link rel="stylesheet" type="text/css" href="css/index.css">
</head>
<body>
<div id="jsi-snow-container" class="container">
<canvas id="canvas"></canvas>
</div>
<div class="left">
<div class="nav-main">
<div class="nav">
<ul class="nav-ul">
<li><a href="小屁.html" class="home"><span>记得暂停音乐</span></a></li>
<li><a href="#" class="develop"><span>页面选择</span></a></li>
<li><a href="#" class="wechat"><span>最美记忆</span></a></li>
<li><a href="#" class="case"><span>青春年华</span></a></li>
<li><a href="./html/jiqiren.html" target="_blank" class="news"><span>小屁聊天</span></a></li>
<li><a href="./html/demo.html" target="_blank" class="contact"><span>留言评论</span></a></li>
</ul>
</div>
<div class="nav-slide">
<div class="nav-slide-o"></div>
<div class="nav-slide-o">
<ul>
<li><a href="./html/shouye.html" target="_blank"><span>进入页面</span></a></li>
<li><a href="./html/daojis.html" target="_blank"><span>计时页面</span></a></li>
<li><a href="./html/ali.html" target="_blank"><span>阿狸页面</span></a></li>
<li><a href="./html/yanhua.html" target="_blank"><span>狗粮页面</span></a></li>
</ul>
</div>
<div class="nav-slide-o">
<ul>
<li><a href="./html/xiangc.html" target="_blank"><span>时光相册</span></a></li>
<li><a href="./html/sp.html" target="_blank"><span>视频回忆</span></a></li>
<li><a href="./html/jinianri.html" target="_blank"><span>纪念日</span></a></li>
</ul>
</div>
<div class="nav-slide-o">
<ul>
<li><a href="./html/qiang.html" target="_blank"><span>小屁</span></a></li>
<li><a href="./html/haha.html" target="_blank"><span>小猪</span></a></li>
</ul>
</div>
<script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
<script type="text/javascript">
<div>$(function(){
var thisTime;
$('.nav-ul li').mouseleave(function(even){
thisTime = setTimeout(thisMouseOut,1000);
})
</script>
</div>
<script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
<script type="text/javascript">
$(function(){
var thisTime;
$('.nav-ul li').mouseleave(function(even){
thisTime = setTimeout(thisMouseOut,1000);
})
$('.nav-ul li').mouseenter(function(){
clearTimeout(thisTime);
var thisUB = $('.nav-ul li').index($(this));
if($.trim($('.nav-slide-o').eq(thisUB).html()) != "")
{
$('.nav-slide').addClass('hover');
$('.nav-slide-o').hide();
$('.nav-slide-o').eq(thisUB).show();
}
else{
$('.nav-slide').removeClass('hover');
}
})
function thisMouseOut(){
$('.nav-slide').removeClass('hover');
}
$('.nav-slide').mouseenter(function(){
clearTimeout(thisTime);
$('.nav-slide').addClass('hover');
})
$('.nav-slide').mouseleave(function(){
$('.nav-slide').removeClass('hover');
})
})
</script>
<script src="js/main.js"></script>
<audio id="audio" src="mp3/dingdang.mp3" autoplay="autoplay" controls></audio>
<script>
// 创建气球对象,并添加到body中
for (var i = 0; i < 36; i++) {
var balloon = new Balloon();
balloon.show();
balloon.run();
}
// 头像
var count = 0;
var timer = setInterval(function () {
var balloon = new Balloon(picArray[count % picArray.length]);
balloon.show();
balloon.run();
count++;
console.log("count = " + count);
if (count == 8) {
clearInterval(timer);
}
}, 900);
</script>
</body>
</html>