title: changing background image when onmouseover
body: <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function change(ele) {
    document.getElementById('info').innerHTML = ele.alt;
    document.getElementById('info').style.backgroundImage = "url(ele.src)";
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id='info'&gt;
    This will tell you more about the below image
  &lt;/div&gt;
  &lt;div id='container'&gt;
    &lt;div&gt;
      &lt;img alt="The mini Barbarian" src="img\barbarian-thumb.jpg" class="pics" onmouseover="change(this)"&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>how do i change the background image of div with id info with the image on which the mouse hover that image is in div tag with id conatiner</p>