티스토리 뷰


<!DOCTYPE html>

<head>

<meta charset="UTF-8">

<title>example</title>

<script type="text/javascript">

window.onload = function(){

var count = 0;

var image = document.getElementById('image');

var frames = [

'0.png','1.png','2.png','3.png','4.png',

'5.png','6.png','7.png','8.png','9.png',

'10.png','11.png','12.png','13.png','14.png'

];


setInterval(function(){

image.src = frames[count % frames.length];

count = count + 1;

},1000/20);

};

</script>

</head>

<body>

<img id="image" />

</body>

</html>




댓글
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/11   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
글 보관함