Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript">
function swap_slow(im_el, im_src){
im_el.swapped=true;
for (var i_tem = 0; i_tem < document.images.length; i_tem++)
if(document.images[i_tem]==im_el)
break;
setTimeout("document.images["+i_tem+"].src='"+im_src+"'", 3000);
}
</script>
</head>
<body>
<img src="white.gif" onload="if(!this.swapped){swap_slow(this, 'black.gif')};">
</body>
</html>
The red 3000 sets a delay of three seconds (3000 milliseconds). Adjust as desired.
Bookmarks