Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<div class="hover2 opacity" onclick="changeImage(this)">
  <h3><a>Test</a></h3>
  <div class="layer1">
    <p class="heading">view <span class="s-right"><img id="myImage"  src="img/plus.svg" width="20" height="20"></span>
      <br>more</p>
    <div class="content">hello</div>
  </div>
  <br>
</div>
<div class="hover2 opacity" onclick="changeImage()">
  <h3><a>Test</a></h3>
  <div class="layer1">
    <p class="heading">view <span class="s-right"><img id="myImage"  src="img/plus.svg" width="20" height="20"></span>
      <br>more</p>
    <div class="content">hello</div>
  </div>
  <br>
</div>            
function changeImage(el) {
  var img=  el.querySelector('span > img');
  img.src = 'http://tse1.mm.bing.net/th?id=OIP.Mc2be31a41f2aaee8652f27c0eb66c0c3H0&pid=15.1';
}
Output

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

Dismiss x
public
Bin info
kizzlebotpro
0viewers