这是我的代码不过和你的差不多

 $("a.tooltip").mouseover(function(e) {
            var title = this.title;
            var href = $(this).attr("href");
            var tooltip = "<div id='tip'><img src='" + href + "' alt='产品预览'></img><br/>" + title + "</div>";                 $(tooltip).appendTo("body");
            $("#tip").css({
                "top": e.pageY + "px",
                "left": e.pageX + "px",
                "display": "block"
            });
        });

你自己看看吧

全文:http://q.cnblogs.com/q/24747/

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-26
  • 2022-12-23
  • 2021-12-28
  • 2021-06-11
猜你喜欢
  • 2021-08-14
  • 2021-09-16
  • 2021-09-27
  • 2021-12-19
  • 2022-02-12
  • 2022-12-23
  • 2021-07-20
相关资源
相似解决方案