当用户将鼠标悬停在我的aspx页面中的链接上时,我正在使用cluetip显示工具提示。我想要这个cluetip来显示数据库中的内容。我不知道怎么做。
我的代码:
$(document).ready(function () {$('a.title').cluetip
({ splitTitle: '|' });
});
Aspx代码:
<a class="title" href="#" title="This is the title|Work Experience">Previous Exp</a>
我想从cluetip的内容中获取数据库中的数据。非常感谢帮助。
答案 0 :(得分:0)
cluetip插件网站上有一个演示,它为基于ajax的cluetips提供了这种语法:
<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页面,该页面返回您想要在cluetip中显示的内容。
编辑:您还必须删除拆分标题功能。
<a class="title" rel="ajax.php" href="#" title="Work Experience">Previous Exp</a>
$(document).ready(function () {
$('a.title').cluetip();
});