-
Notifications
You must be signed in to change notification settings - Fork 1
/
gallery.php
70 lines (66 loc) · 1.98 KB
/
gallery.php
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jQuery lightBox plugin</title>
<link rel="stylesheet" type="text/css" href="../style-projects-jquery.css" />
<!-- Arquivos utilizados pelo jQuery lightBox plugin -->
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.lightbox-0.5.js"></script>
<link rel="stylesheet" type="text/css" href="css/jquery.lightbox-0.5.css" media="screen" />
<!-- / fim dos arquivos utilizados pelo jQuery lightBox plugin -->
<!-- Ativando o jQuery lightBox plugin -->
<script type="text/javascript">
$(function() {
$('#gallery a').lightBox();
});
</script>
<style type="text/css">
/* jQuery lightBox plugin - Gallery style */
#gallery {
background-color:#FFFFFF;
padding: 10px;
width: 520px;
}
#gallery ul { list-style: none; }
#gallery ul li { display: inline; }
#gallery ul img {
border: 5px solid #3e3e3e;
border-width: 5px 5px 5px;
}
#gallery ul a:hover img {
border: 5px solid #33CCFF;
border-width: 5px 5px 5px;
color: #fff;
}
#gallery ul a:hover { color: #fff; }
</style>
</head>
<body>
<br />
<center><h2><font face="Lucida Handwriting" size="+1" color="#00CCFF">Gallery</font></h2></center>
<br />
<div id="gallery">
<center>
<?php
echo "<ul>";
$p="#gallery";
$op=opendir("photos");
while($fr=readdir($op))
{
if($fr!=".." and $fr!="." and $fr!="Thumbs.db")
{
echo "<li>";
echo "<a href='photos/$fr' title='Utilize a flexibilidade dos seletores da jQuery e crie um grupo de imagens como desejar. $p.lightBox();'>";
echo "<img src='photos/$fr' width='80' height='90' alt='' />";
echo "</a>";
echo "</li>";
}
}
echo "</ul>";
?>
</center>
</div>
</div>
</body>
</html>