所以我使用http://tooltipsy.com/ jquery插件并且无法让我的动画工作。
我的代码;
<script src="{T_THEME_PATH}/js/jquery.tipsy.min.js"></script>
<script>
$(function() {
$("a").tipsy({
show: function (e, $el) {
$el.fadeIn(500);
},
content: '<em>Look ma</em>, my tooltip has <strong>HTML</strong>',
delay: 200
});
$("img").tipsy({
delay: 200,
show: function (e, $el) {
$el.fadeIn(500);
},
content: '<em>Look ma</em>, my tooltip has <strong>HTML</strong>'
});
// $("element").tipsy({gravity: jQuery.fn.tipsy.autoNS}); //old code remains, keep this intact. As a reference because this code works.
});
</script>
我已经在页脚中加载了jquery并将代码放在正在加载的jquery下面。所以没有头代码,但工具提示ofc的.css文件。
Google Chrome显示没有错误,工具提示确实显示但没有我定义的任何动画。
fadeIn动画似乎不起作用,我不知道为什么,是吗?