Below is an image shown using the following HTML:

<IMG SRC="/demos/dynImage.asp" ALT="Dyanmic Image!" BORDER=1>

The source code for /demos/dynImage.asp is as follows:

<%
  Randomize
  
  Dim iRnd
  iRnd = Int(Rnd*5)
  
  Select Case iRnd
    Case 0
      Response.Redirect "/images/468x60.gif"
    Case 1
      Response.Redirect "/images/aspwireadd.gif"
    Case 2
      Response.Redirect "/images/mousepad.gif"
    Case 3
      Response.Redirect "/images/100x100.gif"
    Case 4
      Response.Redirect "/images/allthis.gif"
    Case Else
      Response.Redirect "/images/goldscd.gif"
  End Select  
%>


Finally, the output is:

Dyanmic Image!


  • Return to the article