Image Cycle

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
gymboy689
-


Joined: 04 Jan 2004
Posts: 87

PostPosted: Wed Jan 07, 2004 10:40 pm    Post subject: Image Cycle Reply with quote

how do you make your image change everytime you reload a page, like www.teamphotoshop.com does?
Back to top View user's profile Send private message Visit poster's website
jtc970
-


Joined: 24 Mar 2003
Posts: 172

PostPosted: Wed Jan 07, 2004 10:48 pm    Post subject: Reply with quote

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 View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Wed Jan 07, 2004 10:51 pm    Post subject: Reply with quote

With these scripts you can do that

http://javascriptkit.com/script/cut144.shtml (with link)

http://javascriptkit.com/script/cut118.shtml (without link)


Go their , that might be what you mant 8)
Back to top View user's profile Send private message Visit poster's website
mcwilliams132
-


Joined: 27 Jul 2003
Posts: 167
Location: Oshkosh, WI

PostPosted: Thu Jan 08, 2004 7:51 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group