我需要一些关于使用这个插件创建更多 HoverCards 的帮助(下载)。我刚刚在JSFiddle上创建了一个代码演示。你对此有什么建议吗?
JavaScript:
$('.babe-hover').hovercard({
detailsHTML: $(this).attr('data-control').html(),
width:278
});
HTML:
<ul class="demo">
<li>
<a href="#"><span class="babe-hover" data-control="control-01">William Johnson</span></a>
<div id="control-01" style="display: none;">
<p class="s-desc">Address: 64 Newman Street.</p>
<ul class="s-stats">
<li>Tweets<br><span class="s-count">1337</span></li>
</ul>
</div>
</li>
<li>
<a href="#"><span class="babe-hover" data-control="control-02">Hanson Thomas</span></a>
<div id="control-02" style="display: none;">
<p class="s-desc">Address: 64 Newman Street.</p>
<ul class="s-stats">
<li>Tweets<br><span class="s-count">1337</span></li>
</ul>
</div>
</li>
</p>