by ngpgeeta on Sun Dec 17, 2006 8:24 am
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<script>
function calling()
{
timer=setTimeout("imgrefresh()",5000)
}
function imgrefresh()
{
g.innerHTML="<img src='one.jpg' width=100 height=300>"
clearTimeout(timer)
}
</script>
</HEAD>
<BODY onload="calling()">
<div id="g"></div>
</BODY>
</HTML>
This will load the image after 5 sec. If you want continous loading of the image, after the line clearTimeout(timer), write calling(). This will again call imgrefresh after every 5 seconds. Take care if you call calling() continously, this may hang your system.