In order to change images randomly on mouse click, I came across this solution:
<SCRIPT LANGUAGE="Javascript">
function banner() { } ; b = new banner() ; n = 0
b[n++]= "<A HREF='index.html'><IMG SRC='images/pic1.jpg'></A>"
b[n++]= "<A HREF='index.html'><IMG SRC='images/pic2.jpg'></A>"
b[n++]= "<A HREF='index.html'><IMG SRC='images/pic3.jpg'></A>"
b[n++]= "<A HREF='index.html'><IMG SRC='images/pic4.jpg'></A>"
i=Math.floor(Math.random() * n) ;
document.write( b[i] )
</SCRIPT>
Although this method works well, I want "pic1" to always stay as the first picture (even when refreshing the page), and I also do not want "pic1" to be included in the selection of other pictures that change randomly on mouse click.
Thank you, Aviv