开发者

Simple javascript Question (not simple for me)

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜