I try to implement this simple js tooltip script on drupal 6 site.
$(document).ready(function(){
$('#container').on('mouseenter', '#radiobtn', showBox);
$('#container').on('mouseleave', '#radiobtn', hideBox);
function showBox(e){
var x = e.pageX + 20;
var y = e.pageY + 20;
$('#hoverbox').fadeIn();
$('#hoverbox').offset({ left: x, top: y });
}
});
function hideBox(){
$('#hoverbox').fadeOut();
}
However, the framework is 1.8.2 The script is not working under 1.3.2 which uses drupal 6 Can somebody help me with js code for 1.3.2?
Thank you very much
SOLVED: for anyone interested how to accomplish this here is the link http://stackoverflow.com/questions/13422893/tooltip-position-near-the-mouse-click