How easy would it be to add a link variable to this script so that when clicked on it would open up a new window relevant to that image?
Its probably quite simple i'm sure! The image display has worked well but it would be nice to be able to navigate to a page with it as well!
Thanks
Code:
image = new Array
image[1]="images/article1.gif"
image[2]="images/article2.gif"
image[3]="images/article3.gif"
image[4]="images/article4.gif"
image[5]="images/article5.gif"
random_num = (Math.round((Math.random()*4)+1))
document.write("<img src=\"" + image[random_num] + "\">");
Its probably quite simple i'm sure! The image display has worked well but it would be nice to be able to navigate to a page with it as well!
Thanks