<% ' ------------------------------------ ' 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 = 8 strGalleryTitle = "Salem and Peabody Essex Museum" strGalleryDate = "September 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 = "lobby.jpg" Case 2 img = "lobbyface.jpg" Case 3 img = "spine.jpg" Case 4 img = "roof.jpg" Case 5 img = "yinyutanghouse.jpg" Case 6 img = "mixedsetting.jpg" Case 7 img = "dahliagarden.jpg" Case 8 img = "dahliacloseup.jpg" Case Else img = "lobby.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 %>