-
Notifications
You must be signed in to change notification settings - Fork 0
/
vertical-handler.htm
102 lines (76 loc) · 2.57 KB
/
vertical-handler.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Aga 1.08 - Beispiel: Vertikal & Handler</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({
orientation: 'vertical',
direction: 'top',
handler: function(element) {
return $(element).find('a');
},
forceSize: false
});
});
</script>
<style>
body {
margin:0;
padding:0;
font-family:Verdana, sans-serif;
}
ul {
width:500px;
height:414px;
}
ul li {
width:500px;
height:334px;
-moz-box-shadow:0 0 5px #000;
-webkit-box-shadow:0 0 5px #000;
box-shadow:0 0 5px #000;
}
ul li a {
position:absolute;
padding:0 5px !important;
line-height:20px;
font-size:10px;
top:0;
left:0;
color:#fff;
text-decoration:none;
background:#000;
opacity:0.8;
}
</style>
</head>
<body>
<ul>
<li>
<a href="javascript:void(0);">Open</a>
<img src="http://farm5.static.flickr.com/4088/5022646362_4ce0e47c0a.jpg" />
</li>
<li>
<a href="javascript:void(0);">Open</a>
<img src="http://farm5.static.flickr.com/4153/5017235312_13ba30557e.jpg" />
</li>
<li>
<a href="javascript:void(0);">Open</a>
<img src="http://farm5.static.flickr.com/4138/4943039424_9f7c8680c8.jpg" />
</li>
<li>
<a href="javascript:void(0);">Open</a>
<img src="http://farm5.static.flickr.com/4144/4847782802_7967c4075b.jpg" />
</li>
<li>
<a href="javascript:void(0);">Open</a>
<img src="http://farm3.static.flickr.com/2774/4493757422_efa5b70d3d.jpg" />
</li>
</ul>
</body>
</html>