You can toggle a child div during onmouseover and onmouseout like this:
***
function Tooltip(el, text) {
  el.onmouseover = function() {
    el.innerHTML += '
' + text + '
' 
    }
  el.onmouseout = function() {
    el.removeChild(el.querySelector(".tooltip"))
  }
}
***
//Sample Usage
Tooltip(document.getElementById("mydiv"),"hello im a tip div")