<% ' ------------------------------------ ' MOM INSTRUCTIONS LOOK LIKE THIS ' THERE ARE ONLY 2 STEPS ' ------------------------------------ dim intTotalPhotos dim strGalleryTitle dim strGalleryDate ' -------------------------------------------------------- ' 1. ENTER TOTAL # OF PHOTOS AND OTHER GALLERY INFORMATION ' ' | ' | ' v ' -------------------------------------------------------- intTotalPhotos = 10 strGalleryTitle = "Vermont Weekend" strGalleryDate = "4th of July 2003" ' -------------------------------------------------------- ' 2. FOR EACH PHOTO ' - CREATE A NEW 'CASE' ENTRY ' - CHANGE # AND CHANGE FILE NAME ' - FOR BETTER ERROR HANDLING, MAKE 'CASE ELSE' THE SAME AS 'CASE 1' ' ' | ' | ' | ' v ' -------------------------------------------------------- Function getImage(i) Select Case i Case 1 img = "house.jpg" Case 2 img = "ladies.jpg" Case 3 img = "shoes.jpg" Case 4 img = "lostshoes.jpg" Case 5 img = "comparing.jpg" Case 6 img = "relaxing.jpg" Case 7 img = "thebarn.jpg" Case 8 img = "bikelady.jpg" Case 9 img = "cannon.jpg" Case 10 img = "cafe.jpg" Case Else img = "house.jpg" End Select getImage = img End Function %> Photo Gallery - <%= strGalleryTitle %>
<< back to heyjud

<% ' First we'll write the thumbnails For i = 1 to intTotalPhotos response.write "" response.write "" response.write "" Next %>
<% ' Now we make big image If Not isEmpty(request("p")) Then response.write "" Else response.write "" End If %>