-
Notifications
You must be signed in to change notification settings - Fork 0
/
1.html
169 lines (162 loc) · 7.56 KB
/
1.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>Title</title>
<style>
body{margin:0;padding:0;font-size: 1em;box-sizing: border-box}
.wrap{width: 100%;height: auto;}
.header{height:8em;background: deepskyblue; }
.footer{height: 8em;background: lightblue;clear:both}
.content{width: 100%;height: 150em;}
.content-left{height:25em;background: #eeeeee;width:30%;float:left;}
.content-left-nav{width: 80%;margin: 15% auto;;padding:0;}
.content-left-nav li{width: 100%;margin-bottom: 1em;list-style: none;border: 1px solid black;height: 2em;line-height: 2em;text-align: center}
.content-left-nav li.on{background: greenyellow}
.content-left-nav li a{text-decoration: none;display: block;color:black}
.content-left-nav li a:hover{text-decoration:underline;}
.content-right{height:150em;background: #f7f7f7;float:right;width: 70%}
.content-right-list{padding:2em;border: 1px solid black;}
.hide{display: none}
.content-right-list ul{overflow: hidden;padding:1em 3em 2em;}
.content-right-list li{list-style:none;float: left;margin:1em 1em 0 0;}
.content-right-list li a{display: block;text-decoration: none;border: 1px solid powderblue;padding:1.5em 2em;border-radius: 0.7em;float: left}
.content-right-list li a:hover{box-shadow: aquamarine 0.2em 0.2em 0.1em}
</style>
<script>
/* window.onload=function(){
var a = document.getElementsByTagName("img")[0]
setTimeout(function(){
a.style.display="block";
setTimeout(function(){
a.style.display="none"
},3000)
},2000)
}
*/
window.onload= function(){
var aUl =document.getElementsByTagName("ul")[0];
var aLi =aUl.getElementsByTagName("li")
var x = document.getElementById("content-right")
var y = x.getElementsByTagName("div")
var len = aLi.length
for( var i =0;i<len;i++){
aLi[i].id = i;
aLi[i].onmouseover =function(){
for(var n=0;n<len;n++){
aLi[n].className=""
y[n].style.display="none"
}
aLi[this.id].className="on"
y[this.id].style.display="block"
}
}
}
</script>
</head>
<body>
<div class="wrap">
<div class="header"></div>
<div class="content">
<div class="content-left">
<ul class="content-left-nav">
<li class="on"><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>
<div class="content-right" id="content-right">
<div class="content-right-list">
<h4>Websites</h4>
<ul>
<li><a href="http://www.w3schools.com/default.asp" target="_blank">w3schools.com</a></li>
<li><a href="http://www.w3school.com.cn/css3/index.asp">w3c中文</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>
<h4>Blog</h4>
<ul>
<li><a href="http://www.ruanyifeng.com/blog/" target="_blank">阮一峰</a></li>
<li><a href="http://www.zhangxinxu.com/wordpress/" target="_blank">张鑫旭</a></li>
<li><a href="http://www.welefen.com/" target="_blank">李成银</a></li>
<li><a href=""></a></li>
</ul>
</div>
<div class="content-right-list hide">
<h4>javascript project</h4>
<ul>
<li><a href="http://ihome.ust.hk/~lzhouaj/subwebsite/8.html" target="_blank">恋爱计时</a></li>
<li><a href="http://ihome.ust.hk/~lzhouaj/subwebsite/picTimer.html">图片计时器</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>
<div class="content-right-list hide">
<h4>22222</h4>
<ul>
<li><a href="http://www.w3schools.com/default.asp" target="_blank">w3schools.com</a></li>
<li><a href="http://www.w3school.com.cn/css3/index.asp">w3c中文</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>
<div class="content-right-list hide">
<h4>333333</h4>
<ul>
<li><a href="http://www.w3schools.com/default.asp" target="_blank">w3schools.com</a></li>
<li><a href="http://www.w3school.com.cn/css3/index.asp">w3c中文</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>
<div class="content-right-list hide">
<h4>444444</h4>
<ul>
<li><a href="http://www.w3schools.com/default.asp" target="_blank">w3schools.com</a></li>
<li><a href="http://www.w3school.com.cn/css3/index.asp">w3c中文</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>
<div class="content-right-list hide">
<h4>555555</h4>
<ul>
<li><a href="http://www.w3schools.com/default.asp" target="_blank">w3schools.com</a></li>
<li><a href="http://www.w3school.com.cn/css3/index.asp">w3c中文</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>
</div>>
</div>
<div class="footer"></div>
</div>
</body>
</html>