当前,图像弹出,淡出,页面弹出。但是,我希望页面在淡出图像后淡入。javascript编辑:将淡入功能添加到此脚本
<html>
<head>
<style type="text/css">
#content {
display:none;
}
</style>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript">
$(function(){
setTimeout(function() {
$("#splash").fadeOut("slow", function() {
$("#content").show();
});
}, 500);
});
</script>
</head>
<body>
<div id="splash">
<img src="http://farm1.static.flickr.com/215/482472428_5f2f592b64.jpg" />
</div>
<div id="content">
Content
</div>
</body>
</html>
完美,谢谢! – user1070385 2012-04-03 05:05:57
如果它对您有用,您可以将其标记为已接受 – 2012-04-03 11:10:43