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>
<script src="https://code.jquery.com/jquery-1.9.1.min.js"></script>
</head>
<body>
<div class="old">
  <div id="showfriend">
    <a href="#11">Our Furry Friends Need Your Help
    <img src="http://ww2.sinaimg.cn/large/62037b5agw1eu8095pb1gj209s064glk.jpg" alt="狗狗"></a>
  </div>  
  <hr>
</div>
  
  
<div id="clickMe">Show Me the Furry Friend of the Day</div>
<div id="picframe">
  <img src="http://ww2.sinaimg.cn/large/62037b5agw1eu8095pb1gj209s064glk.jpg" alt="狗狗">
</div>
  
</body>
</html>
 
.old a:link img, .old a:visited img{
  display:none;
}
.old a:hover img, .old a:active img{
  display:block;
}
.old a{
  text-decoration:none;
  color:#000;
}
#clickMe{
  background: #d8b36e;
  padding: 20px;
  text-align: center;
  width: 205px;
  display: block;
  border: 2px solid #000;
}
#picframe{
  background: #d8b36e;
  padding: 20px;
  width: 205px;
  display: none;
  border: 2px solid #000;
}
#picframe img{width:100%;}
Output 300px

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers