View previous topic :: View next topic |
Author |
Message |
gymboy689 -
Joined: 04 Jan 2004 Posts: 87
|
Posted: Wed Jan 07, 2004 10:40 pm Post subject: Image Cycle |
|
|
how do you make your image change everytime you reload a page, like www.teamphotoshop.com does? |
|
Back to top |
|
 |
jtc970 -
Joined: 24 Mar 2003 Posts: 172
|
Posted: Wed Jan 07, 2004 10:48 pm Post subject: |
|
|
there are alot of different ways to do this.
teamphotoshop uses a php script..
but you can also use javascript or perl
check www.hotscripts.com im sure theirs something there to help you |
|
Back to top |
|
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
|
Back to top |
|
 |
mcwilliams132 -
Joined: 27 Jul 2003 Posts: 167 Location: Oshkosh, WI
|
Posted: Thu Jan 08, 2004 7:51 pm Post subject: |
|
|
I use a simple ASP script...but the concept I use would work like this (without being language specific).
Randomize a number... 1 to x-number of images
assign each image the same name except for the number of the image. ie; image-1.jpg, image-2.jpg, etc...
Write the image with the randomized number (I wrote it as I would in ASP but write it as you would in your specific lang).
<img src="image-<%=rand%>.jpg" />
when the page renders, it'll draw the coresponding image.
that's one way to do it... there are a number of other methods and I think the links the others provided may help as well. _________________ ::::::::::::::::::::::::::::::::::::::::::::::::::
:: Jon-Paul LeClair
:: http://mcwilliamsworld.com
:: "Lobster sticks to magnet!" |
|
Back to top |
|
 |
|