To get the ID of the hovered element you need to use event.target.
For that you need to pass event
as a parameter in your function.
Then you can get the .id attribute of that element.
function myFunction(event) {
show_result.innerHTML = event.target.id;
}