Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show thumbnail when hover over text

How can I show a thumbnail (image) when I hover of text (which is not a hyperlink).

Thanks.

like image 543
Bob Let Avatar asked Oct 10 '22 09:10

Bob Let


1 Answers

    <div onmouseover="document.getElementById('myimg').style.display='block';"
          onmouseout="document.getElementById('myimg').style.display='none';">some text
    </div>
     <img id="myimg" style="display:none" src="https://upload.wikimedia.org/wikipedia/commons/8/81/Stackoverflow_icon.png" />
like image 62
COBOLdinosaur Avatar answered Oct 13 '22 10:10

COBOLdinosaur