代碼如下:
li{list-style:none;float:left;margin-right:10px;border: 1pxsolid #AAAAAA}
#tooltip{position:absolute;}
;
$(function(){
var x = 10;
var y = 20;
$("a.tooltip"). hover(function(){
var title = this .title;
$("a.tooltip").attr("newTitle",this.title);
var $div = $("
" this.newTitle "
this. title = this.newTitle;
var $div = $( "#newTip" ).css({"left":(e.pageX x) 'px',"top":(e.pageY y) 'px'}).show("fast");