salut
mon slideshow marche pas sur IE
voici le code html
CSS
JAVASCRIPT
[/i][/i][/i]
mon slideshow marche pas sur IE
voici le code html
<div class="slideshow-container">
<div class="mySlides fade">
<img src="../fichiers/flyer.jpg" width="100%" height="300" alt="banniere">
</div>
<div class="mySlides fade">
<img src="../fichiers/concours.jpg" width="100%" height="300" alt="banniere">
</div>
<div class="mySlides fade">
<img src="../fichiers/intello.png" width="100%" height="300" alt="banniere">
</div>
</div>
<div style="text-align:center">;
<span class="dot"></span>
<span class="dot"></span>
<span class="dot"></span>
</div>
CSS
/* Slideshow container */
.slideshow-container {
}
/* The dots/bullets/indicators */
.dot {
text-align:center;
height: 13px;
width: 13px;
margin: 0 0px;
background-color: #bbb;
border-radius: 50%;
display: inline-block;
-webkit-transition: background-color 0.6s ease;
-moz-transition: background-color 0.6s ease;
transition: background-color 0.6s ease;
}
.active {
background-color: #717171;
}
/* Fading animation */
.fade {
-webkit-animation-name: fade;
-webkit-animation-duration: 1.5s;
-moz-animation-name: fade;
-moz-animation-duration: 1.5s;
animation-name: fade;
animation-duration: 1.5s;
}
@-webkit-keyframes fade {
from {opacity: .4}
to {opacity: 1}
}
@-moz-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}
}
JAVASCRIPT
<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, 4000); // Change image every 2 seconds
}
</script>
[/i][/i][/i]