我正在尝试让以下脚本在淡入淡出后有延迟。它可以正确地显示div并进行淡出,但是不会淡入?
许多感谢!
<?php
if(isset($_GET['updated'])) { ?>
<div id='updated'><p>The product was successfully added to your Shopping Cart</p></div>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
$('#updated').fadeIn(800).delay(3000).fadeOut(800)
</script>
<?php } ?>
许多感谢!