Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
<!--[if IE]>
  <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style>
  #nav {width: 200px; border: 1px solid black; height: 500px;}
  .content {display: none; width: 510px; position: absolute; left: 209px; top:8px;height: 500px;}
  .content-l {width: 249px; height: 500px; float: left;border: 1px solid black;}
</style>
</head>
<body>
  <div id="nav">
    <h3>First Item</h3>
      <div class="content">
          <div class="content-l">
            First left content
          </div>
      </div>
    <h3>Second Item</h3>
      <div class="content">
           <div class="content-l">
             Second left content
          </div>
      </div>
    <h3>Third Item</h3>
      <div class="content">
           <div class="content-l">
             Third left content
          </div>
      </div>
    <h3>Fourth Item</h3>
      <div class="content">
           <div class="content-l">
             Fourth left content
          </div>
      </div>
  </div>
</body>
</html>
 
$(function(){
  $("h3").click(function(){
    $(".content").hide(Blind);
    $(this).next().show(Blind);
  });
  
});
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers