<div class="albumbar"> <span>Vincent Boiteau's photostream</span> <div id="albumSelect" class="albumSelect"> <ul> <!-- We will dynamically generate the items --> <?php $firstAlbum = ''; $i=0; foreach($files as $file) { if($file != '.' && $file != '..') { if($i===0) $firstAlbum = $file; else echo "<li><a>$file</a></li>"; ++$i; } } } } ?> </ul> <div class="title down"> <?php echo $firstAlbum;?> </div> </div> </div> <div id="loading"></div> <div id="preview"> <div id="imageWrapper"> </div> </div> <div id="thumbsWrapper"> </div> <div class="infobar"> <span id="description"></span> </div>
*{ margin:0; padding:0; } h1{ margin-top:20px; } body{ font-family:Verdana; text-transform:uppercase; color:#fff; font-size:10px; overflow:hidden; background-color:#f9f9f9; } .albumbar{ height:50px; line-height:24px; text-align:center; position:fixed; background-color:#124a9d; left:0px; width:100%; top:0px; -moz-box-shadow:-2px 0px 4px #333; -webkit-box-shadow:-2px 0px 4px #333; box-shadow:-2px 0px 4px #333; z-index:11; } .infobar{ height:22px; line-height:22px; text-align:center; position:fixed; background-color:#000; left:0px; width:100%; bottom:0px; -moz-box-shadow:0px -1px 2px #000; -webkit-box-shadow:0px -1px 2px #000; box-shadow:0px -1px 2px #000; } span#description, .albumbar span{ text-shadow:0px 0px 1px #fff; color:#fff; } .albumbar span a{ color:#aaa; text-decoration:none; } .albumbar span a:hover{ color:#ddd; } #loading{ display:none; width:50px; height:50px; position:absolute; top:40%; left:50%; margin-left:-24px; background:transparent url(../icons/loading.gif) no-repeat top left; } #thumbsWrapper{ position: absolute; width:100%; height:102px; overflow-y:hidden; background-color:#000; bottom:0px; left:0px; border-top:2px solid #124a9d; } #thumbsContainer{ height:79px; display:block; margin: 0; } #thumbsWrapper img{ float:left; margin:2px; display:block; cursor:pointer; opacity:0.4; } #imageWrapper{ position:relative; padding-top:110px; text-align:center; } #imageWrapper img{ margin:0 auto; -moz-box-shadow:2px 2px 10px #111; -webkit-box-shadow:2px 2px 10px #111; box-shadow:2px 2px 10px #111; } .cursorRight{ cursor:url("../icons/next.png"),url("icons/next.png"), default; } .cursorLeft{ cursor:url("../icons/previous.png"),url("icons/prev.png"), default; }