告诉我这个js代码有什么问题,因为我没有看到它

时间:2015-04-19 23:40:53

标签: javascript jquery css jquery-plugins jquery-animate

所以我使用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>

http://pastebin.com/0iXeV7Zi

我已经在页脚中加载了jquery并将代码放在正在加载的jquery下面。所以没有头代码,但工具提示ofc的.css文件。

Google Chrome显示没有错误,工具提示确实显示但没有我定义的任何动画。

fadeIn动画似乎不起作用,我不知道为什么,是吗?

0 个答案:

没有答案