iframe_slidebox.php


Quell Code


<!DOCTYPE html>
<html><head> 
<title>Welcome!</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head> 
<body>
<iframe src="" class="SlideBox"></iframe>
<script>
var myIndex = 0;
var timer;
  carousel();
 timer=setInterval(carousel, 8000);
var bod=document.getElementsByTagName('body')[0];
bod.addEventListener('mousedown',function(){
       clearInterval(timer);
       carousel();
})
bod.addEventListener('mouseup',function(){
      timer=setInterval(carousel, 5000);
})
function carousel() {
  
var x=['https://pennergame.de','https://basti1012.de','https://soforthilfe-forum.de','https://html.de','https://php.de'];
  
  myIndex++;
  if (myIndex > x.length) {
    myIndex = 1
  }    
  var box=document.getElementsByClassName("SlideBox")[0];
  box.src=x[myIndex-1];
}
</script>
  </body>
</html>

Error: No site found with the domain 'test.basti1012.bplaced.net' (Learn more)