<% If IsEmpty(Request("img")) Then ' if no image was specified in the query string, we start with the first one imgNum = "01" Else ' otherwise, we set the local variable to whatever was requested imgNum = Request("img") End If ' set a local variable to the total number of pics in this collection ' Notice we set it as a string, because comparisons are done to other strings, even though they're integers. sorta totalImgs = "33" ' we set our previous and next image numbers, based on the current one. nextImg = imgNum + 1 prevImg = imgNum - 1 ' we add leading zeros if less than 10, cuz that's how we number our pics. we'd need to do this ' different and add a step if we had more than 100 If nextImg < 10 Then nextImg = "0" & nextImg If prevImg < 10 Then prevImg = "0" & prevImg %> shellen.com ::: Rio Trip February 2002

Rio / February 2002

<% ' just to be nice, we tell users which pic they're on and how many there are at any give time. ' change the "17" to however many pics are in this collection %> <%= imgNum %> of <%= totalImgs %>
<% If imgNum < totalImgs Then %> <% else %> <% end if %>

<% ' this is where we set the captions. Select Case imgNUm Case "01" cap = "View from the hotel. Check out the rainbow!" Case "02" cap = "Another view from our hotel." Case "03" cap = "View of a roundabout in Barra da Tijuca" Case "04" cap = "Ev on the balcony." Case "05" cap = "A summer rain at night." Case "06" cap = "The beautiful beach of Barra in Rio at night." Case "07" cap = "Summer rain sets in." Case "08" cap = "In line at customs at the Rio airport." Case "09" cap = "Yet another view of the clouds over the outcropping in Barra." Case "10" cap = "I can still smell the sea breeze." Case "11" cap = "Rio is full of islands just off the shore." Case "12" cap = "View of the new lifeguard house, next door is the old gutted lifeguard house." Case "13" cap = "Didn't I already take one just like this?" Case "14" cap = "High rises on the beach. Check out the penthouse suites." Case "15" cap = "Mirror shot from the push-button for the toilet. Yes, that is a bidet next to the basin." Case "16" cap = "Another mirror shot." Case "17" cap = "Me and Ev in a conference room at Globo.com before our big presentation." Case "18" cap = "A friendly local spider in Rio." Case "19" cap = "Ev and I spent a lot of time at Globo in rooms that looked like this going over our plans to build Blogger.com.br." Case "20" cap = "Sunset shot of the Globo-plex." Case "21" cap = "We also spent a lot of time at this outdoor mall in Rio that is right behind the Globo offices. Some might say too much time. Not I, of course." Case "22" cap = "Enjoying sushi in the outdoor mall." Case "23" cap = "I'm pretty sure Ev took this shot. It didn't matter where we went in Rio it was dancing happy party time everywhere. Even dinner." Case "24" cap = "Ev in the lobby of the Royalty Hotel in Barra." Case "25" cap = "Outside the Royalty Hotel. Yep just a hop skip and a jump to the beach. Mmmm... Rio." Case "26" cap = "Ev signing our agreement with Globo." Case "27" cap = "The man with the plan and the reason we went to Rio, Bernardo Carvalho with Ev." Case "28" cap = "February in Rio is the height of summer. Sometimes the hillside bursts into flames it's so hot." Case "29" cap = "Bernardo making sure Ev and I will be delivered to the right location." Case "30" cap = "Just waiting for the cab outside of Globo.com watching the hillside burn." Case "31" cap = "Wha?" Case "32" cap = "A quick cab ride to the airport." Case "33" cap = "Waiting in line to go home at the Rio airport." End Select %>
<% If imgNum > 0 Then %> << <% End If %> <%= cap %> <% If imgNum < totalImgs Then %> >> <% End If %>

Go back to the beginning or back to shellen.com