1

当用户将鼠标悬停在我的 aspx 页面中的链接上时,我正在使用提示提示来显示工具提示。我希望这个线索提示显示数据库中的内容。我不知道该怎么做。

我的代码:

 $(document).ready(function () {$('a.title').cluetip
({   splitTitle: '|' });
    });

ASP代码: <a class="title" href="#" title="This is the title|Work Experience">Previous Exp</a>

我想在线索提示的内容中从数据库中获取数据。任何帮助将不胜感激。

4

1 回答 1

0

在线索提示插件网站上有一个演示,它为基于 ajax 的线索提示建议了这种语法:

<a class="basic" href="ajax.html" rel="ajax.html">

你的将是:

<a class="title" rel="ajax.php" href="#" title="This is the title|Work Experience">Previous Exp</a>

其中 ajax.php 被替换为一个 asp 页面,该页面返回您想要在线索提示中显示的内容。

编辑:您还必须删除拆分标题功能。

<a class="title" rel="ajax.php" href="#" title="Work Experience">Previous Exp</a>


$(document).ready(function () {
  $('a.title').cluetip();
});
于 2012-01-10T18:57:17.803 回答