<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML> <HEAD> <TITLE>Предварительная загрузка изображений</TITLE> <script type="text/javascript" language="JavaScript"> <!--//--><![CDATA[//><!-- if (document.images) { var img = new Object(); img["first"] = new Image(80, 80); img["first"].src = "test.gif"; img["second"] = new Image(80, 80); img["second"].src = "test2.gif"; // и так далее... } //--><!]]> </SCRIPT> </HEAD> <BODY> <IMG src="test2.jpg" height="80" width="80" onmouseover="this.src = img['second'].src" onmouseout="this.src = img['first'].src" /> </BODY> </HTML>