<HTML> <HEAD> <SCRIPT language="JavaScript"> <!-- if (document.images) { var pic1_init= new Image(); pic1_init.src="1.gif"; var pic2_init= new Image(); pic2_init.src="2.gif"; var pic3_init= new Image(); pic3_init.src="3.gif"; var pic4_init= new Image(); pic4_init.src="4.gif";
// Preload images for mouseover var pic1_new= new Image(); pic1_new.src="5.gif"; var pic2_new= new Image(); pic2_new.src="6.gif"; var pic3_new= new Image(); pic3_new.src="7.gif"; var pic4_new= new Image(); pic4_new.src="8.gif";
alert("init"); }
function change_it(the_name) { alert("in change it"); if (document.images) { document.images[the_name].src= eval(the_name+".src"); alert("changed to:"+document.images[the_name].src); } }