title: How to add on click event for button that appeared on mouseover
body: <p>I have two questions:</p>
  
  <ol>
  <li><p>I want to display 6 buttons around an image on <code>mouseover</code> event of the image on specific positions. Is it possible?</p></li>
  <li><p>Is it possible to write an <code>onclick</code> event for those buttons?</p></li>
  </ol>
  
  <p>I don't have any experience in web designing. I used the below code</p>
  
  <p><strong>Javascript:</strong></p>
  
  <pre><code>function showIt(imgsrc)
  {
  document.getElementById('imageshow').src=imgsrc;
  document.getElementById('imageshow').style.display='';
  }
  
  function hideIt()
  {
  document.getElementById('imageshow').style.display='none';
  }
  </code></pre>
  
  <p><strong>HTML:</strong></p>
  
  <pre><code>&lt;input type="button" id="imageshow" Onclick="onClickFunc()" style="display:none" value="Button1"/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  &lt;input type="button" id="imageshow" Onclick="onClickFunc()" style="display:none" value="Button2"/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  &lt;input type="button" id="imageshow" Onclick="onClickFunc()" style="display:none" value="Button3"/&gt;&lt;br&gt;
  &lt;img src="Images/Image1.jpg" onmouseover="showIt(this.src)"&gt;&lt;br&gt;
  &lt;input type="button" id="imageshow" Onclick="onClickFunc()" style="display:none" value="Button4"/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  &lt;input type="button" id="imageshow" Onclick="onClickFunc()" style="display:none" value="Button5"/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  &lt;input type="button" id="imageshow" Onclick="onClickFunc()" style="display:none" value="Button6"/&gt;
  </code></pre>
  
  <p>but when I <code>mouseout</code> from the image, the button is disappearing. If i remove the <code>onmouseout</code> event, the button stays like that only which i don't want to. And I really didn't get on how to place 6 buttons around the image. I am planning to do like this:
  <img src="https://i.stack.imgur.com/Fw7HL.png" alt="enter image description here"></p>
  
  <p>So kindly help me. Thank you</p>