|
I have the following code on my site:
<script language="JavaScript">
y = 0;
ad = new Array(y);
ad[y++] = "<IMG SRC=\"images/main/anne_murray_web.jpg\" width=550 height=220 border=0><br>"
ad[y++] = "<IMG SRC=\"images/main/anne_murray_web.jpg\" width=550 height=220 border=0><br>"
ad[y++] = "<IMG SRC=\"images/main/carebears.jpg\" width=550 height=220 border=0><br>"
ad[y++] = "<IMG SRC=\"images/main/boo_bash_05.jpg\" width=550 height=220 border=0><br>"
ad[y++] = "<IMG SRC=\"images/main/kids_memories.jpg\" width=550 height=220 border=0><br>"
ad[y++] = "<IMG SRC=\"images/main/conference.jpg\" width=550 height=220 border=0><br>"
x = Math.floor(Math.random()*(y));
document.write(ad[x]);
</script>
This allows me to randomly have a different image on my homepage each time someone comes to my site or refreshes the page. However, I want to have a separate link added to each image that pops up.
How would I do that?
Thanks!
MCInteractive
|