<script language="JavaScript">
<!--
var a=Math.round(Math.random()*2)
image = new Array();
image[0]="www/Pictures/images/1.jpg"
image[1]="www/Pictures/images/2.jpg"
image[2]="www/Pictures/images/3.jpg"
document.write ("<img src="+image[a]+" onclick=\"location.href='www' \">");
img:hover {
cursor: pointer
}
//-->
</script>
Правильно?