diedVIPs

html knowhow

Slideshow Gallery










Slideshow Gallery

So sieht´s aus
1 / 6
2 / 6
3 / 6
4 / 6
5 / 6
6 / 6

Amazon
Diedvips
HBart
htmlknowhow
MeinSolargarten
Ovoice
Quellcode
<html>
<head>

<style type="text/css">
* {box-sizing: border-box;}
img {vertical-align: middle;width:10%;height:auto;}
.container {position: relative;width:100%;}
.mySlides {display: none;width:30%;height:auto;}
.cursor {cursor: pointer;}
.prev,.next {cursor: pointer; position: absolute; top: 30%; width: 5%; padding: 16px; margin-top: -50px; color: red; font-weight: bold; font-size: 20px;
border-radius: 0 3px 3px 0; user-select: none; -webkit-user-select: none;}
.next {right: 0; border-radius: 3px 0 0 3px;}
.next:hover {background-color: rgba(0, 0, 0, 0.8);}
.numbertext {color: #f2f2f2; font-size: 12px; padding: 8px 12px; position: absolute; top: 0;}
.caption-container {text-align: center; background-color: #222; padding: 2px 16px; color: white;}
.row:after {content: ""; display: table; clear: both;}
.column {float: left; width: 16.66%;}
.demo {opacity: 0.6;}
.active,.demo:hover {opacity: 1;}
</style>
<head>

<body >
<center><table style="width: 70%" class="auto-style30">
<tr><td>
<div class="container">
<div class="mySlides">
<div class="numbertext"> 1 / 6</div><img src="../Bilder/Werbung/W-Amazon.jpg" style="width:100%"/></div>
<div class="mySlides"><div class="numbertext">2 / 6</div><img src="../Bilder/Werbung/W-Diedvips.jpg" style="width:100%"/></div>
<div class="mySlides"><div class="numbertext">3 / 6</div><img src="../Bilder/Werbung/W-HBart.jpg" style="width:100%"/></div>
<div class="mySlides"><div class="numbertext">4 / 6</div><img src="../Bilder/Werbung/W-htmlKN.png" style="width:100%"/></div>
<div class="mySlides"><div class="numbertext">5 / 6</div><img src="../Bilder/Werbung/W-MSGS.jpg" style="width:100%"/></div>
<div class="mySlides"><div class="numbertext">6 / 6</div><img src="../Bilder/Werbung/W-Ovoice.jpg" style="width:100%"/></div>
<a class="prev" onclick="plusSlides(-1)">❮</a>
<a class="next" onclick="plusSlides(1)">❯</a>
<div class="caption-container"><p id="caption"></p></div>
<div class="row">
<div class="column"><img class="demo cursor" src="../Bilder/Werbung/W-Amazon.jpg" style="width:50%" onclick="currentSlide(1)" alt="Amazon"/></div>
<div class="column"><img class="demo cursor" src="../Bilder/Werbung/W-Diedvips.jpg" style="width:50%" onclick="currentSlide(2)" alt="Diedvips"/></div>
<div class="column"><img class="demo cursor" src="../Bilder/Werbung/W-HBart.jpg" style="width:50%" onclick="currentSlide(3)" alt="HBart"/></div>
<div class="column"><img class="demo cursor" src="../Bilder/Werbung/W-htmlKN.png" style="width:50%" onclick="currentSlide(4)" alt="htmlknowhow"/></div>
<div class="column"><img class="demo cursor" src="../Bilder/Werbung/W-MSGS.jpg" style="width:50%" onclick="currentSlide(5)" alt="MeinSolargarten"/></div>
<div class="column"><img class="demo cursor" src="../Bilder/Werbung/W-Ovoice.jpg" style="width:50%" onclick="currentSlide(6)" alt="Ovoice"/></div>
</div></div>
</td>
</tr>
</table></center>
<script>
var slideIndex = 1;
showSlides(slideIndex);
function plusSlides(n) {
showSlides(slideIndex += n);
}
function currentSlide(n) {
showSlides(slideIndex = n);
}
function showSlides(n) {
var i;
var slides = document.getElementsByClassName("mySlides");
var dots = document.getElementsByClassName("demo");
var captionText = document.getElementById("caption");
if (n > slides.length) {slideIndex = 1}
if (n < 1) {slideIndex = slides.length}
for (i = 0; i < slides.length; i++) {
slides[i].style.display = "none";
}
for (i = 0; i < dots.length; i++) {
dots[i].className = dots[i].className.replace(" active", "");
}
slides[slideIndex-1].style.display = "block";
dots[slideIndex-1].className += " active";
captionText.innerHTML = dots[slideIndex-1].alt;
}
</script>
</body>

</html>



Rollierende Bildershow

Der Rahmen bewegt sich automatisch ums Bild.

So sieht´s aus
Quellcode
<html>
<head>

<style type="text/css">
.slideshow {list-style-type: none;}
.slideshow,
.slideshow:after { position: absolute; width: 100%; height: 70%; left: 0px; z-index: 0; }
.slideshow li span { position: absolute; width: 100%; height: 70%; top: 0px; left: 0px; background-size: 100%;
background-position: 50% 50%; background-repeat: no-repeat; opacity: 0; z-index: 0; animation: imageAnimation 30s linear infinite 0s; }
.slideshow li:nth-child(1) span { background-image: url("http://saleorbuy.lmfd.de/Bilder/werbung/B-Dinner.jpg"); }
.slideshow li:nth-child(2) span { background-image: url("http://saleorbuy.lmfd.de/Bilder/werbung/B-MSGS.jpg"); animation-delay: 6s; }
.slideshow li:nth-child(3) span { background-image: url("http://saleorbuy.lmfd.de/Bilder/werbung/B-HBart.jpg"); animation-delay: 12s; }
.slideshow li:nth-child(4) span { background-image: url("http://saleorbuy.lmfd.de/Bilder/werbung/B-Hdil.jpg"); animation-delay: 18s; }
.slideshow li:nth-child(5) span { background-image: url("http://saleorbuy.lmfd.de/Bilder/werbung/B-Ovoice.jpg"); animation-delay: 24s; }
@keyframes imageAnimation {
0% { opacity: 0; animation-timing-function: ease-in; }
8% { opacity: 1; animation-timing-function: ease-out; }
17% { opacity: 1 }
25% { opacity: 0 }
100% { opacity: 0 }}
@keyframes titleAnimation {
0% { opacity: 0 }
8% { opacity: 1 }
17% { opacity: 1 }
19% { opacity: 0 }
100% { opacity: 0 }}
.no-cssanimations .cb-slideshow li span {opacity: 1;}
</style>
</head>

<body >
<div id="captioned-gallery">
<figure class="slider">
<figure><a href="http://todayslunch.de"><img src="../../bilder/Werbung/B-Dinner.jpg" /></a></figure>
<figure><a href="http://hbart.de"><img src="../../bilder/Werbung/B-hbart.jpg" /></a></figure>
<figure><a href="http://meinsolargarten.de"><img src="../../bilder/Werbung/B-msgs.jpg" /></a></figure>
<figure><a href="http://ovoice.de"><img src="../../bilder/Werbung/B-Ovoice.jpg" /></a></figure>
<figure><a href="http://htmlknowhow.de"><img src="../../bilder/Werbung/B-hkh.jpg" /></a></figure>
</figure>
</div>

</body>

</html>










Kontakt    Datenschutz   Impressum