转载http://wouit.com/post/2013-08-15/40052169981
html
<a href="#" tishi="常见的网页新闻循环跳动显示的新闻">常见的网页新闻循环跳....</a></p>
js
<script> $(document).ready(function(){ $("a").mousemove(function(e){ var thiss = $(this).attr("tishi"); var mouseY = e.pageY; var mouseX = e.pageX; $("#tishi").css("opacity","0.7"); $("#tishi").html("<div class='b'>"+thiss+"<div>www.52webui.com</div></div>"); $(".b").css({top: mouseY+5, left: mouseX +20}); }); $("a").mouseout(function(){ $(".b").remove(); }); }); </script>