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>

Add Comment

* Required information
1000
Drag & drop images (max 1)
Powered by Commentics

Comments

No comments yet. Be the first!

Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0