N
nyguy8103
Hi guys. I use a random photo script which works out great for me.. the
script is as follows.....
function image() {
};
image = new image();
number = 0;
// imageArray
image[number++] = "<img src='images/1.jpg' border='1'>"
image[number++] = "<img src='images/2.jpg' border='1'>"
image[number++] = "<img src='images/3.jpg' border='1'>"
image[number++] = "<img src='images/4.jpg' border='1'>"
increment = Math.floor(Math.random() * number);
document.write(image[increment]);
//--></SCRIPT>
... recently, I've had requests for the random pictures that display to be
linked to a fullsize photo when clicked. Is there something I can add to the
above script to have every random photo be hyperlinked to a larger one?
script is as follows.....
function image() {
};
image = new image();
number = 0;
// imageArray
image[number++] = "<img src='images/1.jpg' border='1'>"
image[number++] = "<img src='images/2.jpg' border='1'>"
image[number++] = "<img src='images/3.jpg' border='1'>"
image[number++] = "<img src='images/4.jpg' border='1'>"
increment = Math.floor(Math.random() * number);
document.write(image[increment]);
//--></SCRIPT>
... recently, I've had requests for the random pictures that display to be
linked to a fullsize photo when clicked. Is there something I can add to the
above script to have every random photo be hyperlinked to a larger one?