Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
<div class="main">
  <div class="hoi" id="change-me" style="width:99%;height:99%;border:1px solid blue">
            This is where the image was
            <div class="main">main
            <div class="Back">back
    <div class="header">Header
    <div class="menu">menu
    <div class="content">content
        </div>
        </div>
        </div>
        </div>
        </div></div>
</body>
</html>
 
        var
            images = [ "11.jpg", "22.jpg", "33.jpg" ] //the list of images
          , imgToCHange = document.getElementById( 'change-me' )
          , interval = 1000 //in ms
          ;
        setInterval( function(){
          images.unshift( images.pop() );
          imgToCHange.style.backgroundImage = "url(" + images[0] + ")";
         }, interval );
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
guymidpro
0viewers