-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
354 lines (332 loc) · 12.1 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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
<!DOCTYPE html>
<html>
<head>
<meta>
<title>我的网站</title>
<link href="./css/MyPage.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="js/waibuyinru.js"></script>
<script src="./jQuery/jquery-3.4.1.min.js"></script>
<script src="./js/animation.js"></script>
<script type="text/javascript">
alert("Welcome to the Page Of LRL!");
window.onload = function () {
if (getCookies("loginAN")) {
document.getElementById("userName").innerHTML = getCookies("loginAN");
document.getElementById("userName").href = "userCenter.html";
if (!getCookies("loginPW")) {
removeCookies("loginAN");
}
}
};
function mouseOnclick_searchLocal() {
var MOC_1 = document.getElementById("search").value;
var r = window.confirm("请问你要在本站查找" + MOC_1 + "吗?");
if (r) {
alert("本站没有" + MOC_1);
} else {
}
}
function mouseOnclick_searchNet() {
var MOC_2 = document.getElementById("search").value;
var r = window.confirm("请问你要在全站站查找" + MOC_2 + "吗?");
if (r) {
alert("全站没有" + MOC_2);
} else {
}
}
function mouseOnclick_userCenter() {
console.log((document.getElementById("userName").innerHTML).toString() === "点击登录");
if ((document.getElementById("userName").innerHTML).toString() !== "点击登录") {
document.querySelector('.img_02 a').href = "./userCenter.html";
} else {
alert("请先登陆!");
window.open("./logIn.html", "_self");
}
}
</script>
</head>
<body>
<div class="catalogue">
<div><span><a id="userName" href="logIn.html">点击登录</a></span></div>
<ul>
<li class="img_01">
<a href="#">我的意见</a>
</li>
<li class="img_02">
<a href="#" onclick="mouseOnclick_userCenter()">个人中心</a>
</li>
<li class="img_03">
<a href="#">网页导航</a>
</li>
<li class="img_04">
<a href="./index.html">网站首页</a>
</li>
</ul>
</div>
<div class="photo">
<div class="slider">
<ul class="list">
<li class="item"><img src="./img/img_01.jpg" alt=""></li>
<li class="item"><img src="./img/img_02.jpg" alt=""></li>
<li class="item"><img src="./img/img_03.jpg" alt=""></li>
<li class="item"><img src="./img/img_04.jpg" alt=""></li>
</ul>
<button class="prev"></button>
<button class="next"></button>
<!--ul.pageination>(li.bullet{$})*4-->
<ul class="pageination">
<li class="bullet focus">1</li>
<li class="bullet">2</li>
<li class="bullet">3</li>
<li class="bullet">4</li>
</ul>
</div>
<script>
(function () {
var prevIndex, nextIndex;
var len;
var id;
init();
function init() {
prevIndex = nextIndex = 0;
len = document.querySelectorAll('.list .item').length;
document.querySelector('.prev').onclick = function () {
sliderPrev();
};
document.querySelector('.next').onclick = function () {
sliderNext();
};
var bullets = document.querySelectorAll('.slider .pageination .bullet');
for (var i = 0; i < bullets.length; i++) {
bullets[i].index = i;
bullets[i].onclick = function () {
prevIndex = nextIndex;
nextIndex = this.index;
sliderTo(prevIndex, nextIndex);
}
}
var slider = document.querySelector('.slider');
slider.onmouseover = function () {
stop();
};
slider.onmouseout = function () {
auto();
};
auto();
}
function sliderPrev() {
prevIndex = nextIndex;
nextIndex--;
if (nextIndex === -1) {
nextIndex = len - 1;
}
sliderTo(prevIndex, nextIndex);
}
function sliderNext() {
prevIndex = nextIndex;
nextIndex++;
if (nextIndex === len) {
nextIndex = 0;
}
sliderTo(prevIndex, nextIndex);
}
function sliderTo(prev, next) {
var bullets = document.querySelectorAll('.slider .pageination .bullet');
bullets[prev].className = 'bullet';
bullets[next].className = 'bullet focus';
var lis = document.querySelectorAll('.list .item');
animate(lis[prev], {opacity: 0});
animate(lis[next], {opacity: 100});
}
function auto() {
clearInterval(id);
id = setInterval(function () {
sliderNext()
}, 2000);
}
function stop() {
clearInterval(id);
}
})()
</script>
<div class="tupian_01"></div>
<div class="input"><label for="search"></label><input id="search" type="text" placeholder="请输入你要输入的内容"/></div>
<ul>
<li class="search_01" style="background-color: #E9E7EF">
<a onclick="mouseOnclick_searchLocal()">搜本站</a>
</li>
<li class="search_02" style="background-color: aliceblue;">
<a onclick="mouseOnclick_searchNet()">搜全站</a>
</li>
</ul>
<div class="tupian_02"></div>
</div>
<div class="search">
<ul class="search_net clear"></ul>
<script>
function getData(data) {
var script = document.querySelector('#jsonp');
script.parentNode.removeChild(script);
$('.search_net').html('');
for (var i = 0; i < data.g.length; i++) {
$('<li style="padding-left: 160px">' + data.g[i].q + '</li>').appendTo('.search_net');
}
}
function getList(wd) {
var script = document.createElement('script');
script.id = 'jsonp';
script.src = 'https://www.baidu.com/sugrec?pre=1&p=3&ie=utf-8&json=1&prod=pc&from=pc_web&sugsid=1441,21106,30495,30472&cb=getData&wd=' + wd;
document.body.appendChild(script);
}
$('input').keyup(function () {
var wd = $(this).val();
getList(wd);
})
</script>
</div>
<div class="main clear">
<div class="head clear">
<ul class="room_01">
<li class="head_01">
<a href="#" style="padding-left:10px ;">Photo</a>
</li>
<li class="head_02">
<a href="#">Memory</a>
</li>
<li class="head_03" style="padding-left: 80px;">
<a href="#">Video</a>
</li>
<li class="head_04" style="padding-left: 85px;">
<a href="#">File</a>
</li>
</ul>
</div>
<div class="main_left">
<div class="tupian_03"></div>
<ul class="room_02">
<li style="border-top: dashed">
<a href="#">语文</a>
</li>
<li>
<a href="#">数学</a>
</li>
<li>
<a href="#">英语</a>
</li>
<li>
<a href="#">物理</a>
</li>
<li>
<a href="#">化学</a>
</li>
<li>
<a href="#">生物</a>
</li>
<li>
<a href="#">地理</a>
</li>
<li>
<a href="#">历史</a>
</li>
<li>
<a href="#">政治</a>
</li>
</ul>
<div class="tupian_04"></div>
<button class="btnFav" style="height: 50px;width: 200px;cursor: pointer">收藏本站</button>
<script>
var url = document.URL;
var title = document.title;
$(document).ready(function () {
$(".btnFav").click(function () {
var ctrl = (navigator.userAgent.toLowerCase()).indexOf('mac') !== -1 ? 'Command/Cmd' : 'CTRL';
if (document.all) {
window.external.addFavorite(url, title);
alert('收藏成功');
} else if (window.sidebar) {
window.sidebar.addPanel(title, url, "");
alert('收藏成功');
} else {
alert('您可以通过快捷键' + ctrl + ' + D 加入到收藏夹');
}
})
})
</script>
</div>
<div class="main_right">
<div class="top clear">
<ul>
<li class="top_01">
<div style="padding-top: 230px;text-align: center;">
<a href="#">高考专业分数</a>
</div>
</li>
<li class="top_02">
<div style="padding-top: 230px;text-align: center;">
<a href="#">东北石油大学师生名册</a>
</div>
</li>
<li class="top_03">
<div style="padding-top: 230px;text-align: center;">
<a href="#">《龙族》</a>
</div>
</li>
</ul>
</div>
<div class="middle clear">
<ul>
<li class="middle_01">
<div style="padding-top: 230px;text-align: center;">
<a href="#">大学物理答案</a>
</div>
</li>
<li class="middle_02">
<div style="padding-top: 230px;text-align: center;">
<a href="#">马加爵案件分析</a>
</div>
</li>
<li class="middle_03">
<div style="padding-top: 230px;text-align: center;">
<a href="#">计算机专业历年就业率</a>
</div>
</li>
</ul>
</div>
<div class="bottom clear">
<ul>
<li class="bottom_01">
<div style="padding-top: 230px;text-align: center;">
<a href="#">如何看待大学生早恋</a>
</div>
</li>
<li class="bottom_02">
<div style="padding-top: 230px;text-align: center;">
<a href="#">中国汉字分析</a>
</div>
</li>
<li class="bottom_03">
<div style="padding-top: 230px;text-align: center;">
<a href="#">中美贸易战的弊端</a>
</div>
</li>
</ul>
</div>
</div>
</div>
<div class="foot">
<ul>
<li>阿里妈妈MUX倾力打造的矢量图标管理、交流平台。</li>
<li>设计师将图标上传到Iconfont平台,用户可以自定义下载多种格式的icon,平台也可将图标转换为字体,便于前端工程师自由调整与调用。</li>
<li>©ALIMAMA MUX, powered by alimama THX.法律声明</li>
<li>转载内容版权归作者及来源网站所有,本站原创内容转载请注明来源。</li>
<li>联系方式:</li>
<li>
<a href="#"> QQ </a>
<a href="#"> Wechat </a>
<a href="#"> post </a>
<a href="#"> Facebook </a>
</li>
</ul>
</div>
</body>
</html>