开发者

Simple javascript Question (not simple for me)

开发者 https://www.devze.com 2023-03-03 12:53 出处:网络
Can someone please correct my code here.It works well in most browsers but I get an error in ie7.I\'m sure it\'s a syntax thi开发者_如何学编程ng:

Can someone please correct my code here. It works well in most browsers but I get an error in ie7. I'm sure it's a syntax thi开发者_如何学编程ng:

 <script type="text/javascript">
$(document).ready(function() {
$(".testimonail-label").addClass("-webkit-animation");
$(".banner h2").addClass("-webkit-animation");
$(".banner .test-name").addClass("-webkit-animation");    
};


You forgot a ')'

 <script type="text/javascript">
$(document).ready(function() {
$(".testimonail-label").addClass("-webkit-animation");
$(".banner h2").addClass("-webkit-animation");
$(".banner .test-name").addClass("-webkit-animation");    
});


On the last line you forgot to close out the call to ready:

};

should be

});
0

精彩评论

暂无评论...
验证码 换一张
取 消