jQuery工具工具提示

时间:2009-11-24 14:40:15

标签: jquery jquery-plugins tooltip

我有一个背景图片链接,它使用列表中的jQuery工具提示。页面上有这些的倍数(例如20)。第一个工作正常,但其余的工具提示不起作用。有关如何解决此问题的任何想法?提前谢谢。

这是我的代码(我使用NHAML作为我的视图引擎):

%script{language="Javascript"}
  $(document).ready(function(){
    $("#download_now").tooltip();
  });

%a{id="download_now"}
  %div{id="tooltip" class="tooltip"}
    -string bulletSep = "|";
    -string[] bulletList = job.Requirements.Split(bulletSep.ToCharArray(),
     StringSplitOptions.RemoveEmptyEntries);
    %ul
      -for (int i = 0; i < bulletList.Length; i++)
        %li =bulletList[i]

2 个答案:

答案 0 :(得分:0)

它可能是插件,但如果没有您的代码,则无法确定问题。我编写了一个tooltip / hovertip jQuery插件,它支持完整的HTML内容(图像,带有HTML标记的文本等等)。可以在下面的链接中找到。

http://plugins.jquery.com/project/hovertiphtml

答案 1 :(得分:0)

请参阅此问题jQuery Tools Tooltip Issue

相关问题