-
Notifications
You must be signed in to change notification settings - Fork 22
/
test.html
executable file
·322 lines (299 loc) · 5.94 KB
/
test.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<head>
<title>
</title>
<script src="include/js/Jquery.js">
</script>
</head>
<style>
#header
{
background-color:#333;
height:50px;
margin-top:-20px;
margin-left:-10px;
margin-right:-10px;
font-family:微软雅黑;
}
.one_li
{
float:left;
width:100px;
text-align:center;
list-style:none;
}
#two{
display:none;
}
#header a:hover #two{
display:block;
position:absolute;
top:45px;
left:-2px;
z-index:10;
}
#two li
{
background-color:#333;
width:100px;
text-align:center;
list-style:none;
height:40px;
border-top:1px solid #FFF;
}
#two li:hover{
background-color:#000;
}
#three
{
display:none;
}
#header a:hover #three{
display:block;
position:absolute;
top:45px;
left:98px;
z-index:10;
}
#three li
{
background-color:#333;
width:100px;
text-align:center;
list-style:none;
height:40px;
border-top:1px solid #FFF;
}
#three li:hover{
background-color:#000;
}
a{
color:#FFF;
text-decoration:none;
line-height:50px;
display:block;
}
a:hover{
background-color:#000;
}
.triangle
{
margin-top:100px;
border:solid;
border-color:transparent rgba(0,0,0,.9) transparent transparent;
border-width:0 15px 15px 0;
width:0;
height:0;
}
#contest{
background-color:#FFF;
/*position:absolute;
top:7%;
left:13%;
margin-left:auto;
margin-right:auto;*/
position:relative;
top:40px;
margin:0 auto;
width:1000px;
height:800px;
box-shadow:0px 0px 50px #000;
border-radius:5px;
}
.header{
background-color:#1D1B17;
/*background-color:rgba(0,0,0,.9);*/
height:45px;
margin-top:-20px;
margin-left:-20px;
margin-right:-20px;
box-shadow:0px 0px 50px #FFF;
background-image:-moz-linear-gradient(hsla(0,0%,100%,.3),hsla(0,0%,100%,0) 30px);
background-image:-webkit-gradient(linear,0 0,0 30,from(hsla(0,0%,100%,.3)),to(hsla(0,0%,100%,0)));
}
.button {
line-height:20px;
font-size:16px;
text-align:center;
padding:10px 15px;
background-color:#1D1B17;
color:#FFF;
border:solid;
border-width:1px;
font-family:微软雅黑;
border-radius:4px;
background-image:-webkit-gradient(linear,0 0,0 30,from(hsla(0,0%,100%,.3)),to(hsla(0,0%,100%,0)));
}
.button:hover {
background-color:#000;
cursor:pointer;
/*box-shadow:0px 0px 20px #000;*/
border-radius:1px;
text-shadow:0 0 20px #FFF;
}
.button:active {
position: relative;
top: 1px;
}
</style>
<body>
<div id="header">
<ul id="one">
<li class="one_li"><a href="#" class="header_first">首页
<span id="two">
<ul>
<li onclick="Move()">数字工大</li>
<li>个人中心</li>
<li>工大官网</li>
</ul>
</span>
</a>
</li>
<li class="one_li"><a href="#" class="header_first">个人中心
<span id="three">
<ul>
<li onclick="Move()">数字工大</li>
<li>个人中心</li>
<li>工大官网</li>
</ul>
</span>
</a></li>
<li class="one_li"><a href="#" class="header_first" target="_blank">数字工大</a></li>
<li class="one_li"><a href="#" class="header_first" target="_blank">工大官网</a></li>
<li class="one_li"><a class="#" onclick="zhuxiao()">注销</a></li>
</ul>
</div>
<div class="jiao">
</div>
<br /><br />
<audio src="downloads/Wax - 为你补妆.mp3">
您的浏览器不支持audio
</audio>
<form>
<input type="button" value="查 询"; class="button"/>
<input type="button" value="按教师查询"; class="button"/>
</form>
<canvas id="myCanvas"></canvas>
<style>
div.tab
{
background-color:#999;
}
.tab ul li
{
list-style:none;
float:left;
}
.tab ol li
{
clear:both;
}
.normal
{
color:#000;
}
.none
{
display:none;
}
.show
{
display:block;
}
.hover
{
color:#0CC;
}
img
{
position:absolute;
}
</style>
<div class="tab">
<ul>
<li>tab1</li>
<li>tab2</li>
<li>tab3</li>
</ul>
<ol>
<li><img src="../Online_system/image/樊毅伟.gif" alt="樊毅伟"/></li>
</ol>
</div>
<div>
<dl>
<dt>樊毅伟</dt>
<dd>张官军</dd>
</dl>
</div>
<div class="img">
<img src="../sutacm/logo/one.jpg" />
</div>
<br /><br /><br /><br />
<script>
$(".img img").eq(0).slideDown(3000,function()
{
$(this).slideUp(3000);
});
$(function(){
var $uli = $(".tab ul li");
var $oli = $(".tab ol li");
/*$($oli[0]).css({'display':'none'});
$($oli[1]).css({'display':'none'});*/
$uli.className="hover";
$oli.className="show";
$uli.each(function(n) {
$(this).mouseover(function(){
$uli.css('cursor','pointer');
$uli.removeClass().addClass("normal");
$(this).removeClass().addClass("hover");
$oli.removeClass().addClass("none");
if(n==0)
{
name = "樊毅伟";
}
else if(n==1)
{
name = "王猛";
}
else
{
name = "王珏鑫";
}
$($oli[0]).html("<img src=../Online_system/image/"+name+".gif alt=樊毅伟/>");
$($oli[0]).removeClass().addClass("show");
}
)
});
});
/*for(i=0;i<5;i++)
{
if(i==0)
{name = "one";}
else if(i==1)
{name = "two";}
else if(i==2)
{name = "three";}
else if(i==3)
{name = "four";}
else if(i==4)
{name = "five";}
$(".img img").fadeOut(1000);
$(".img img[i]").fadeIn(1000);
}*/
</script>
<script type="text/javascript">
var canvas=document.getElementById('myCanvas');
var ctx=canvas.getContext('2d');
ctx.fillStyle='#FF0000';
ctx.fillRect(0,0,80,100);
</script>
<script>
function Move()
{
alert("fdsf");
}
</script>
</body>
</html>