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
});
精彩评论