Repository navigation
Expand file tree
/
Copy pathexample-different-direction.php
More file actions
181 lines (156 loc) · 3.86 KB
/
Copy pathexample-different-direction.php
File metadata and controls
181 lines (156 loc) · 3.86 KB
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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>jQuery Grid list - Different Direction Example</title>
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
<link rel="stylesheet" href="css/jquery.gridlist-0.1.css" type="text/css" media="screen" charset="utf-8" />
<link rel="shortcut icon" href="images/favicon.png" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.gridlist.js"></script>
<style>
.box {
min-height: 900px;
}
#grid-container {}
#grid-container h1 {
width: 690px;
margin: 24px auto 48px auto;
text-transform: uppercase;
}
/* custom gridlist styles */
ul#gridlist {
width: 690px;
height: 734px;
margin: 0 auto;
}
ul#gridlist li {
width: 200px;
height: 240px;
margin: 0 30px 10px 0;
}
ul#gridlist li:hover img {
border: 1px solid #333;
-moz-box-shadow: 0px 0px 12px #ccc;
-webkit-box-shadow: 0px 0px 12px #ccc;
box-shadow: 0px 0px 12px #ccc;
}
ul#gridlist li img {
width: 200px;
height: 200px;
}
ul#gridlist li a {
padding: 4px 0;
display: block;
color: #888;
font-size: 1.2em;
text-transform: uppercase;
text-decoration: none;
}
ul#gridlist li a:hover {
color: #999;
text-decoration: none;
}
</style>
<script type="text/javascript">
jQuery.noConflict();
jQuery(document).ready(function($){
// save the gridlist as a javascript object in order to call public methods later
var gridList = $('#gridlist').gridList({
columns: 3,
rows: 3,
direction: 'bottom'
});
// public access
$('a#pause').click(function(e){
e.preventDefault();
//gridList.pause();
});
$('a#resume').click(function(e){
e.preventDefault();
//gridList.resume();
});
});
</script>
</head>
<body>
<div id="page">
<div id="header">
<div id="header-content">
<a href="index.php">« Back to Main Page</a>
</div>
</div>
<div id="grid-container" class="box">
<h1>Latest News</h1>
<ul id="gridlist">
<li>
<img src="img/thumbs/01.jpg" alt="Image 01" />
<a href="#">Headline Entry 01</a>
</li>
<li>
<img src="img/thumbs/02.jpg" alt="Image 02" />
<a href="#">Headline Entry 02</a>
</li>
<li>
<img src="img/thumbs/03.jpg" alt="Image 03" />
<a href="#">Headline Entry 03</a>
</li>
<li>
<img src="img/thumbs/04.jpg" alt="Image 04" />
<a href="#">Headline Entry 04</a>
</li>
<li>
<img src="img/thumbs/05.jpg" alt="Image 05" />
<a href="#">Headline Entry 05</a>
</li>
<li>
<img src="img/thumbs/06.jpg" alt="Image 06" />
<a href="#">Headline Entry 06</a>
</li>
<li>
<img src="img/thumbs/07.jpg" alt="Image 07" />
<a href="#">Headline Entry 07</a>
</li>
<li>
<img src="img/thumbs/08.jpg" alt="Image 08" />
<a href="#">Headline Entry 08</a>
</li>
<li>
<img src="img/thumbs/09.jpg" alt="Image 09" />
<a href="#">Headline Entry 09</a>
</li>
<li>
<img src="img/thumbs/10.jpg" alt="Image 10" />
<a href="#">Headline Entry 10</a>
</li>
<li>
<img src="img/thumbs/11.jpg" alt="Image 11" />
<a href="#">Headline Entry 11</a>
</li>
<li>
<img src="img/thumbs/12.jpg" alt="Image 12" />
<a href="#">Headline Entry 12</a>
</li>
<li>
<img src="img/thumbs/13.jpg" alt="Image 13" />
<a href="#">Headline Entry 13</a>
</li>
<li>
<img src="img/thumbs/14.jpg" alt="Image 14" />
<a href="#">Headline Entry 14</a>
</li>
<li>
<img src="img/thumbs/15.jpg" alt="Image 15" />
<a href="#">Headline Entry 15</a>
</li>
</ul>
</div>
<div id="footer">
<div id="footer-content">
© 2013 by tommy krueger → visit <a href="http://tommykrueger.com">tommykrueger.com</a>
</div>
</div>
</div>
</body>
</html>