<p style="padding:10px"><link rel="stylesheet" type="text/css" href="slideshowmobile.css"></p><div id="slideshow">
<!-- Radio -->
<input checked="checked" name="pan" id="pan1" type="radio">
<input name="pan" id="pan2" type="radio">
<input name="pan" id="pan3" type="radio">
<input name="pan" id="pan4" type="radio">
<div id="slides">
<div id="mask">
<div class="slide_content">
<div class="pannello" id="p1"> <!-- Pannello 1 -->
<div style="font-weight: bold; font-size: 20px; text-align: center">Chalet 4 sorelle</div><div style="text-align: justify; padding: 0 10px">Testo
<div style="background: url(
http://chalet4sorelle.altervista.org/Foto/chalet-d.jpg) no-repeat center ;background-size: 100%; height: 130px; margin: 5px 0;border: 2px solid #e0e0e0;border-radius: 10px;box-shadow: 0 0 0 1px rgba(255, 255, 255, .4)"></div></div>
</div>
<div class="pannello" id="p2"> <!-- Pannello 2 -->
<div style="font-weight: bold; font-size: 20px; text-align: center">Bar</div><div style="text-align: justify; padding: 0 10px">Testo
<div style="background: url(
http://chalet4sorelle.altervista.org/Foto/bar.jpg) no-repeat center ;background-size: 100%; height: 130px; margin: 5px 0;border: 2px solid #e0e0e0;border-radius: 10px;box-shadow: 0 0 0 1px rgba(255, 255, 255, .4)"></div></div>
</div>
<div class="pannello" id="p1"> <!-- Pannello 3 -->
<div style="font-weight: bold; font-size: 20px; text-align: center">Ristorante</div><div style="text-align: justify; padding: 0 10px">Testo
<div style="background: url(
http://chalet4sorelle.altervista.org/Foto/tavolini.jpg) no-repeat center ;background-size: 100%; height: 130px; margin: 5px 0;border: 2px solid #e0e0e0;border-radius: 10px;box-shadow: 0 0 0 1px rgba(255, 255, 255, .4)"></div></div>
</div>
<div class="pannello" id="p2"> <!-- Pannello 4 -->
<div style="font-weight: bold; font-size: 20px; text-align: center">Spiaggia</div><div style="text-align: justify; padding: 0 10px">Testo
<div style="background: url(
http://chalet4sorelle.altervista.org...ombrelloni.jpg) no-repeat center ;background-size: 100%; height: 130px; margin: 5px 0;border: 2px solid #e0e0e0;border-radius: 10px;box-shadow: 0 0 0 1px rgba(255, 255, 255, .4)"></div></div>
</div>
</div>
</div>
</div>
</div>
<div id="active"><center>
<label for="pan1"></label>
<label for="pan2"></label>
<label for="pan3"></label>
<label for="pan4"></label>
</center></div>
<script type="text/javascript">
//SLIDESHOW A SCORRIMENTO AUTOMATICO
//by bored -
http://ffmagazine.forumfree.it/?t=65226584
var slideJRadio = document.getElementById("slideshow").querySelector All('input[type="radio"]');
var eSlide = 1;
var slideJTime;
function setSlideTime(){
slideJTime = window.setInterval(function(){
if(eSlide === slideJRadio.length){
eSlide = 0;
}
slideJRadio[eSlide].checked = true;
eSlide++;
}, 4000);
}
setSlideTime();
document.getElementById("slideshow").onmouseover = function(){
window.clearInterval(slideJTime);
}
document.getElementById("slideshow").onmouseout = setSlideTime;
for(var i = 0; i < slideJRadio.length; i++){
slideJRadio[i].onclick=function(){
eSlide = this.id.match(/[0-9]+/) - 1;
}
}
</script><p></p>