K
KI-MEDIA
Guest
Hallo,
ich habe mit css selbst eine Bilder-Galerie erstellt und nun das Problem, dass ich nur vorwärts klicken kann und nicht zurück. ich müsste praktisch auf der linken seite des Bildschirms (100% height; 50% width) sowie auf der rechten jeweils einen verlinkten Bereich haben.
Einfacher gesagt, ich brauche theoretisch das hier:
Geht ja aber nicht...
Zu sehen gibts die Galerie jedenfalls live hier: http://www.wanjapflueger.de/portrait.html
Die Galerie funktioniert so:
Das hier ist das angezeigte, große Bild nach dem Klick auf die Vorschau. Die Galerie klickt sich also von Bild zu Bild.
Das hier ist die vorschau (kleines bild)
Und das hier ist das css:
Vielen Dank schon mal,
KI-MEDIA
ich habe mit css selbst eine Bilder-Galerie erstellt und nun das Problem, dass ich nur vorwärts klicken kann und nicht zurück. ich müsste praktisch auf der linken seite des Bildschirms (100% height; 50% width) sowie auf der rechten jeweils einen verlinkten Bereich haben.
Einfacher gesagt, ich brauche theoretisch das hier:
Code:
<a left href="link1.html" name="zurück">
<a right href"bild3.png" name="vorwärts">
<img src="bild2.png"/>
</a>
</a>
Zu sehen gibts die Galerie jedenfalls live hier: http://www.wanjapflueger.de/portrait.html
Die Galerie funktioniert so:
Das hier ist das angezeigte, große Bild nach dem Klick auf die Vorschau. Die Galerie klickt sich also von Bild zu Bild.
Code:
<ul class="lightbox">
<li id="01">
<a href="#start"><div class="close"></div></a>
<a href="#02"><img height="100%" src="bilder/creative/01.jpg" /></a>
</li>
</ul>
Code:
<a href="#01"><img class="preview" src="bilder/creative/01.jpg" /></a>
Und das hier ist das css:
Code:
@charset "utf-8";
/* CSS Document */
ul.lightbox li {
overflow: hidden;
position: fixed;
width: 0px;
height:0px;
left: 0;
top:0;
opacity: 0;
z-index:1;
cursor:pointer;
list-style-type: none;
}
ul.lightbox li:target {
background: rgba(0,0,0,0.8);
width:100%;
height:100%;
opacity: 1;
cursor:default;
}
ul.lightbox li:target a {
position: fixed;
top: 0px;
height:100%;
width:100%;
left: 0%;
border: 0px solid #000;
-moz-box-shadow: 0px 0px 50px rgba(0,0,0,0.7);
-o-box-shaow:0px 0px 50px rgba(0,0,0,0.7);
-webkit-box-shadow:0px 0px 50px rgba(0,0,0,0.7);
}
.close {
position:fixed;
top:5px;
right:5px;
background-image:url(close.png);
background-repeat:no-repeat;
width:25px;
height:25px;
z-index:2;
}
.preview {
opacity:0.85;
transition: all 0.5s ease;
-webkit-transition: all 0.5s ease;
-moz-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
margin-right:5px;
margin-left:5px;
margin-bottom:10px;
vertical-align: middle;
height:225px;
}
.preview:hover {
opacity:1;
-moz-box-shadow: 0px 0px 50px rgba(0,0,0,0.7);
-o-box-shaow:0px 0px 50px rgba(0,0,0,0.7);
-webkit-box-shadow:0px 0px 50px rgba(0,0,0,0.7);
}
.previewabout {
opacity:0.85;
transition: all 0.5s ease;
-webkit-transition: all 0.5s ease;
-moz-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
margin-right:5px;
margin-left:5px;
margin-bottom:10px;
vertical-align: middle;
}
.previewabout:hover {
opacity:1;
-moz-box-shadow: 0px 0px 50px rgba(0,0,0,0.7);
-o-box-shaow:0px 0px 50px rgba(0,0,0,0.7);
-webkit-box-shadow:0px 0px 50px rgba(0,0,0,0.7);
}
Vielen Dank schon mal,
KI-MEDIA