alvar
08-17-2003, 10:26 AM
i have put a script in my page to show a random image (below).
i have links that change that image to something appropriate to the link, question is, onMouseOut,
how can i return the image to the original randomly selected image?
thanx!
function check()
{
var img_name = new Array("....");
var l = img_name.length;
var rnd_no = Math.round((l-1)*Math.random());
var memory = document.thumb.src = img_name[rnd_no];
}
i have links that change that image to something appropriate to the link, question is, onMouseOut,
how can i return the image to the original randomly selected image?
thanx!
function check()
{
var img_name = new Array("....");
var l = img_name.length;
var rnd_no = Math.round((l-1)*Math.random());
var memory = document.thumb.src = img_name[rnd_no];
}