源代碼
<!DOCTYPE html PUBLIC "
<html xmlns="
<head>
<meta http
<title>谷歌主頁動畫</title>
<style type="text/css">
height:
width:
background:url(images/gumby
background
}
</style>
<script type="text/javascript" src="
<script type="text/javascript">
$(function(){
var offset =
$(
var timer = setInterval(function(){
offset +=
$(
});
if(offset >
clearInterval(timer);
}
}
$(this)
});
});
</script>
</head>
<body>
<div id="animate" class="animate"></div>
<a id="start" href="javascript:void(
</body>
</html>
其實這動畫不難
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/20275.html