티스토리 뷰


<!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>




댓글
댓글쓰기 폼