You need to get the coordinates of the mouse and use their script to put the popover on click. If you are using jQuery this may help:
$('#yourimage').click(function(){
$('#popover').css('left', pageX-(popover width)+'px');
$('#popover').css('top', pageY-(popover height)+'px');
})
--- --- EDIT
Here is a demo of what you need.
source
share