-
Notifications
You must be signed in to change notification settings - Fork 0
/
menu.htm
144 lines (117 loc) · 4.56 KB
/
menu.htm
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Aga 1.08 - Beispiel: Menu</title>
<link rel="stylesheet" type="text/css" media="screen" href="css/aga-1.07.css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<script type="text/javascript" src="js/aga-1.08.min.js"></script>
<script>
$(function() {
$('ul').aga({
start: null,
forceSize: true,
size: {
min: 80
},
stayOpen: false,
open: {
durring: function(items, i, pos) {
if (i == pos) {
$(items[pos]).find('div').animate({
width: 200
}).find('h3').animate({
'font-size': '1.6em'
});
} else {
$(items[i]).find('div').animate({
width: 80
}).find('h3').animate({
'font-size': '1.0em'
});
}
}
},
close: {
durring: function(items, i, pos) {
$(items[i]).find('div').animate({
width: 160
}).find('h3').animate({
'font-size': '1.0em'
});
}
}
});
});
</script>
<style>
body {
margin:0;
padding:0;
font-family:Verdana, sans-serif;
}
ul {
width:640px;
height:334px;
}
ul li {
width:500px;
height:334px;
background:#fff;
}
ul div {
position:relative;
width:160px;
height:100%;
float:left;
}
ul div h3 {
line-height:50px;
position:relative;
text-align:center;
color:#fff;
font-size:1.0em;
font-weight:normal;
font-family:"Georgia";
font-style:italic;
text-shadow:0 1px 2px rgba(0, 0, 0, 0.6);
}
ul p {
position:relative;
float:left;
width:160px;
font-size:0.6em;
text-align:justify;
padding:50px 20px !important;
}
</style>
</head>
<body>
<ul>
<li>
<div style="background:url(http://farm5.static.flickr.com/4088/5022646362_4ce0e47c0a.jpg) center center;">
<h3>Menu 1</h3>
</div>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.</p>
</li>
<li>
<div style="background:url(http://farm5.static.flickr.com/4153/5017235312_13ba30557e.jpg) center center;">
<h3>Menu 2</h3>
</div>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.</p>
</li>
<li>
<div style="background:url(http://farm5.static.flickr.com/4138/4943039424_9f7c8680c8.jpg) center center;">
<h3>Menu 3</h3>
</div>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.</p>
</li>
<li>
<div style="background:url(http://farm5.static.flickr.com/4144/4847782802_7967c4075b.jpg) center center;">
<h3>Menu 4</h3>
</div>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.</p>
</li>
</ul>
</body>
</html>