forked from Snickersmix/inji-inversion-menu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
104 lines (103 loc) · 3.31 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Меню с плавной инверсией цвета</title>
<meta name="keywords" content="">
<meta name="description" content="">
<style>
* {margin: 0;padding: 0;}
.header {
border-bottom:2px solid #444444;
padding:5px;
margin-bottom: 10px;
background:#ccc;
font-size:16px;
color:#464646;
}
.copy {
float:right;
}
.copy a {
color:#464646;
font-weight:700;
}
.nav {
border: 1px solid #aaa;
margin: 0 10px;
float:left;
white-space:nowrap;
}
.nav ul {
list-style: none;
}
.nav ul li {
display: inline-block;
}
.nav ul li a {
text-decoration: none;
color:#464646;
padding:0 40px;
line-height:40px;
display:block;
}
.nav ul li.active a{
color: #fff;
}
.nav ul li.active {
background-color: #444444;
}
.nav2 {
border: 1px solid #aaa;
margin: 0 10px;
float:left;
white-space:nowrap;
}
.nav2 ul {
list-style: none;
}
.nav2 ul li {
display: block;
}
.nav2 ul li a {
text-decoration: none;
color:#464646;
padding:0 40px;
line-height:40px;
display:block;
}
.nav2 ul li.active a{
color: #fff;
}
.nav2 ul li.active {
background-color: #444444;
}
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js" type="text/javascript"></script>
<script src="./inji_inversion_menu.js" type="text/javascript"></script>
<script>
$(function() {
$( 'ul' ).inji_inversion_menu({bg:'#444',font:'#fff'});
});
</script>
</head>
<body>
<div class = 'header'>Меню с плавной инверсией цвета [jQuery plugin] <div class = 'copy'> © <a href = 'mailto:[email protected]'>Alexey Krupsky</a> "CMS INJI" </div></div>
<div class = 'nav'>
<ul>
<li><a href="#">first</a></li>
<li><a href="#">second item in this menu</a></li>
<li class="active"><a href="#">third</a></li>
<li><a href="#">fourth</a></li>
</ul>
</div>
<div class = 'nav2'>
<ul>
<li><a href="#">first</a></li>
<li><a href="#">second item in this menu</a></li>
<li class="active"><a href="#">third</a></li>
<li><a href="#">fourth</a></li>
</ul>
</div>
</body>
</html>