PDA

View Full Version : Is there a way to


kenzie
June 15th, 2007, 05:23 PM
... have some text or maybe an image change each time the page is refreshed? Like a want different quotes to appear on the page each time someone refreshes the page. Is that possible? I think I've seen something like that before.

grace
June 15th, 2007, 05:27 PM
Hmm I've been wondering the same thing so I can have a "Glitter of the day" section. I know there's button rotation scripts, maybe that would work?

SlickEddie
June 15th, 2007, 05:27 PM
yeah, you would need to use an image tho...or flash.

You can use .htaccess/php to spit out a random image with the quotes

kenzie
June 15th, 2007, 05:29 PM
yeah, you would need to use an image tho...or flash.

You can use .htaccess/php to spit out a random image with the quotes
Thanks! :)

SlickEddie
June 15th, 2007, 05:32 PM
here's the basic idea:

say you have an image => img href="yoursite.com/randomquote.php"

randomquote.php => use a randomizer to select from a list of images...then do a location(image url) command

If you want to do something more advance, you can do a "text to image"

kenzie
June 15th, 2007, 05:36 PM
http://www.glittersbymckenzie.com/

I got it to work. I just need to change that weird image to an image with the text.

SlickEddie
June 15th, 2007, 05:38 PM
lol...oh, ok, i thought you wanted a persons profile to update with the quote/image of the day

kenzie
June 15th, 2007, 05:41 PM
lol...oh, ok, i thought you wanted a persons profile to update with the quote/image of the day
I wanted it to say something different. Like what people are saying about the glitters. :P

Thanks though. I gave you green rep. :biggrin:

SlickEddie
June 15th, 2007, 05:45 PM
thanks! :)