| <SCRIPT>
var Index = 0; // global variable that ties the images, links, & messages togethervar album = new Array(); album[0] = new Image(); album[0].src = "images/father.gif"; album[1] = new Image(); album[2] = new Image(); } var url = new Array(); // create Links Arrayurl[0] = "http://www.yahoo.com"; url[1] = "http://www.gardens.com"; url[2] = "http://espn.go.com"; var msg = new Array(); // create Messages Arraymsg[0] = "Yahoo - My Father's Favorite Site"; msg[1] = "My Aunt Loves Outdoor Gardening"; msg[2] = "ESPN - The Place where my Brother gets all his Soccer Scores"; function showImage(sIndex) {// assign the picture index to the global variable // so that the matching link & message is tied to the image Index = sIndex; if (document.images) document.picture.src = album[Index].src; } function showMsg() {status = msg[Index]; // display status bar messages } function go2() {location.href = url[Index]; // jump to a new page } </SCRIPT> The Body onLoad is necessary in order to reset the Select Menu. If this wasn't done the last Selected Item would remain when we return back to the page. Demo version without the onLoad.<BODY onLoad="document.myGallery[0].options[0].selected=true"> <FORM NAME="myGallery"> <A HREF="javascript:go2()" |