Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  
  
   <p>
     <a id="prev">prev</a>
     <a id="next">next</a>    
  </p>
  
  
   <div id="thumbnails">
      <img src="http://placehold.it/300x150/cf5&text=1">
      <img src="http://placehold.it/300x150/444&text=2">
     <img src="http://placehold.it/300x150/f0f&text=Nice,huh">
   </div>
  
  <div id="main-img-container">
       <div id="main-img"></div>
  </div>
   
  
  
</body>
</html>
 
body{background:#ddd;}
/* ... */
#thumbnails img{
  height:30px;
}
div#main-img-container{
  height:200px;
  background: #eee url(http://www.2ergo.com/images/loading_transparent.gif) no-repeat center center;  
}
div#main-img{
  width:100%;
  height:100%;
  background: transparent no-repeat center center;
  background-size:cover; 
}
#next, #prev{
  cursor:pointer;
  background:#eee;
  padding:4px 10px;
  -webkit-border-radius:5px;
          border-radius:5px;
}
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers