javascript代码:

var mouseon=false;
// $('a')是要有mouseover出息提示信息的对象;
$('a').mouseover(function(e) {
        //取得该对象的title属性作为提示信息显示,当然你也可以指定其他属性;
	var tip = $(this).attr('title');
        // 判断当前是否鼠标停留在对象上,可以修正ie6下出现的意外Bug;
	mouseon=true;
        // 清空内容,因为title属性浏览器默认会有提示;
	$(this).attr('title','');
        // 创建提示信息的容器,样式自定;
	$("body").append('<div id="tooltip"><div>' + tip + '</div></div>');
        // 取得鼠标坐标来指定提示容器的位置;
	$('#tooltip').css({
              top:e.pageY - 35,
              left:e.pageX - $("#tooltip").width()+36
        }).show();
}).mousemove(function(e) {
	$('#tooltip').css({
              top:e.pageY - 35,
              left:e.pageX - $("#tooltip").width()+36
        });
}).mouseout(function() {
	if(mouseon==true){
		$(this).attr('title',$('#tooltip div').html());
		$('#tooltip').remove();
		mouseon=false;
	}
});

在线Demo地址:http://www.astronergy.com/about_worldwide.php