JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<title>changing per min</title>
<script>
function imgTrans(){
var img = document.getElementById("img01");
var imgs_src = ["http://cfile2.uf.tistory.com/image/1623D1374F3646CF05D779",
"http://cfile6.uf.tistory.com/image/1518A2374F3646CC14B2FE"];
img.src = (img.src == imgs_src[0]) ? imgs_src[1] : imgs_src[0];
}
function change(){
setInterval(imgTrans , 1000);
}
</script>
</head>
<body onload="change();">
<img id="img01" src="http://cfile2.uf.tistory.com/image/1623D1374F3646CF05D779" alt="" border="0">
</body>
</html>