[thelist] Rotating images with ASP
Jason Cartwright
mail at jasoncartwright.com
Sun Oct 20 10:47:00 CDT 2002
You would be better off having the HTML page select the image and then
write the HTML to call whatever image. Eg -
<%
Select rndno
Case "1"
response.write ("<img src='1.gif'>")
Case "2"
response.write ("<img src='2.gif'>")
End select
%>
This has several advantages -
* Faster execution server-side
* Only two calls to the server
* Smaller log files
If you *really* need to have the page static then you could use
javascript.
Jason
www.jasoncartwright.com
> <.img src="image.asp?img=images/bglogo.gif">
> or even:
> <.img src="image.asp"> and it would show the image from the html page.
More information about the thelist
mailing list