<html>
<head>
<title></title>
</head>
<body>
<script language="javascript">
var str = '<table border="1" bgcolor="lime" width="360" align="center"><tr>';
str += '<td width="65" height="155"> <div id="d1"></div></td>';
str += '<td width="60" height="155"> <div id="d2"></div></td>';
str += '<td width="60" height="155"> <div id="d3"></div></td>';
str += '</tr><tr>';
str += '<td width="60" height="155"> <div id="d4"></div></td>';
str += '<td width="60" height="155"> <div id="d5"></div></td>';
str += '<td width="60" height="155"> <div id="d6"></div></td>';
str += '</tr></table>';
document.write(str);
var old = null;
(function(){
var r=Math.ceil(Math.random()*6);
if (old!=null) old.innerHTML = '';
old = document.getElementById('d'+r);
old.innerHTML='<center><img src="test.gif"></center>';
setTimeout(arguments.callee,1000)
})();
</script>
</body>
</html>
и
onclick="alert(\'hi\')"