Javascript jQuery的脉冲效应

Javascript jQuery的脉冲效应,javascript,jquery,html,jquery-plugins,Javascript,Jquery,Html,Jquery Plugins,我似乎仍然无法将脉动图像用于jQuery。 这是一段显然可以工作但不能工作的代码 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>

我似乎仍然无法将脉动图像用于jQuery。 这是一段显然可以工作但不能工作的代码

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>test</title>

</head>
<body>
<script src="jquery-1.4.2.js" type="text/javascript"></script>
<script src="jquery.pulse.js" type="text/javascript"></script>
<script type="text/javascript">
jQuery(function() {
jQuery('#waterloo').pulse({
    opacity: [0,1]
}, {
     duration: 100, // duration of EACH individual animation
     times: 3, // Will go three times through the pulse array [0,1]
     easing: 'linear', // easing function for each individual animation
     complete: function() {
         alert("I'm done pulsing!");
    }
});
</script>

<a href="#"><img src="waterloo.png" border="0" class="env" id="waterloo"/></a>
</body>
</html>

测试
jQuery(函数(){
jQuery(“#滑铁卢”).pulse({
不透明度:[0,1]
}, {
持续时间:100,//每个动画的持续时间
次数:3,//将通过脉冲阵列[0,1]三次
easing:'线性',//每个动画的easing函数
完成:函数(){
警觉(“我不再跳动了!”);
}
});

两个js文件都在同一个目录中,所以我不知道它为什么不起作用。

计算结束括号和括号与开始括号的数量。您还没有关闭文档。ready-statement。

计算结束括号和括号与开始括号的数量。您还没有关闭文档。请阅读y语句。

您是否有指向此页面的链接以便我们查看?您缺少一个右括号和一个卷曲。请尝试添加
})到代码的末尾。还有,缩进!哇…没想到我会这么做。我猜它一直在逃避我。谢谢,J-P为什么还有一个问题?您是否有指向此页面的链接以便我们可以查看?您缺少一个右括号和一个卷发。尝试附加
})到代码的末尾。还有,缩进!哇…没想到我会这么做。我猜它一直在逃避我。谢谢,J-P为什么还有一个问题?