PDA

View Full Version : Using images that refresh?


Gossennator
02-25-2008, 04:35 AM
I was wondering how do i put a code to where theres an image that refreshes itself like on the original site? [img] codes just save the actual image that I was viewing at the time.

Heres an example of what I want to put on my site. As see on the link its a traffic camera and it just keeps refreshing.
http://www.lafayettela.gov/traffic/traffic_cameras.asp?ptzid=31

This is also the frame source.

<HTML>


<body bgcolor = #D8D8D8>
<b>JOHNSTON @ AMBASSADOR</b><br>

<img src="../VServerImages/JohnstonCaffery.jpg" name="CurImg">






<script language="JavaScript"><!--
function reloadImage() {
var now = new Date();

document.images.CurImg.src = "../VServerImages/JohnstonCaffery.jpg?" + Math.random();


//}

setTimeout('reloadImage()',2000);
}

setTimeout('reloadImage()',1000);
//--></script>


</HTML>



Please help me:D

Thanks,
Crawford

--------------- Added 1203971261 at 1203971261 ---------------

bump

Gossennator
02-26-2008, 11:05 PM
bump