08.09.2017, 17:15
Hallo, Du könntest den Style
in das headerinclude Template einfügen und diesen Code
in das header Template, an gewünschter Stelle, eintragen.
Code:
<style>
* {box-sizing:border-box}
body {font-family: Verdana,sans-serif;}
.mySlides {display:none}
/* Slideshow container */
.slideshow-container {
max-width: 100%;
position: relative;
margin: auto;
}
.active {
background-color: #FFFFFF;
}
/* Fading animation */
.fade {
-webkit-animation-name: fade;
-webkit-animation-duration: 1.5s;
animation-name: fade;
animation-duration: 1.5s;
}
@-webkit-keyframes fade {
from {opacity: .4}
to {opacity: 1}
}
@keyframes fade {
from {opacity: .4}
to {opacity: 1}
}
/* On smaller screens, decrease text size */
@media only screen and (max-width: 300px) {
.text {font-size: 11px}
}
</style>
in das headerinclude Template einfügen und diesen Code
Code:
<div class="slideshow-container">
<div class="mySlides fade">
<img src="http://gardasee-forum.com/forum/images/slide/riva-torbole.jpg" style="width:100%">
</div>
<div class="mySlides fade">
<img src="http://gardasee-forum.com/forum/images/slide/san-vigilio.jpg" style="width:100%">
</div>
<div class="mySlides fade">
<img src="http://gardasee-forum.com/forum/images/slide/sundown01.jpg" style="width:100%">
</div>
<div class="mySlides fade">
<img src="http://gardasee-forum.com/forum/images/slide/torbole01.jpg" style="width:100%">
</div>
<div class="mySlides fade">
<img src="http://gardasee-forum.com/forum/images/slide/torri.jpg" style="width:100%">
</div>
</div>
<br>
<div style="text-align:center">
<span class="dot"></span>
<span class="dot"></span>
<span class="dot"></span>
</div>
<script>
var slideIndex = 0;
showSlides();
function showSlides() {
var i;
var slides = document.getElementsByClassName("mySlides");
var dots = document.getElementsByClassName("dot");
for (i = 0; i < slides.length; i++) {
slides[i].style.display = "none";
}
slideIndex++;
if (slideIndex> slides.length) {slideIndex = 1}
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";
setTimeout(showSlides, 10000); // Change image every 10 seconds
}
</script>
in das header Template, an gewünschter Stelle, eintragen.
Mit freundlichen Grüßen
MrBrechreiz
MrBrechreiz