[Javascript] Refreshing only one image
Diego Bustamante
diegob at lagash.com
Thu Oct 18 16:39:57 CDT 2001
in Explorer 4 you can do this:
//On init
handle = window.event.setInterval( "myFunction", 500 ); //(in miliseconds)
.
.
.
.
//On finish
window.event.clearInterval( handle );
function myFunction(){
var img = document.getElementByID( 'myImage_ID' );
.
.
.
.
img.src = 'new_src';
}
I hope this can help you.
Diego Bustamante.
----- Original Message -----
From: Iztok Polanic
To: javascript at LaTech.edu
Sent: Thursday, October 18, 2001 12:17 PM
Subject: [Javascript] Refreshing only one image
Hi!
I have a page which has one image. Now I want to make a function that will change the image every 5 minutes. But I don't want to refresh/reload the whole page only the image should change. Does anybody have an idea how to make this?
Bye,
Iztok
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20011018/8aa4bc1e/attachment.htm>
More information about the Javascript
mailing list