스크립트 문의드립니다.
<img src="http://127.0.0.1/test.jpg" id="test" width="120" height="120">
<script type="text/javascript">
<!--
document.images.test.onload = DoIt1;
function LoadImage1()
{
document.images.test.src = "http://127.0.0.1/test.jpg";
document.images.test.onload = DoIt1;
}
function DoIt1()
{
errorimg1=0;
window.setTimeout("LoadImage1();", 40);
}
//-->
</script>
위와 같은 스크립트가 있는데요 test.jpg를 0.4초마다 불러와야 되는데요
한번 불러오고 끝나는것 같습니다.. 왜 그럴까요?
중강중간 계속 test.jpg 화일이 변경이 되거든요 ..
고수님들 부탁드립니다.
|
댓글을 작성하시려면 로그인이 필요합니다.
댓글 1개