View Single Post
Old 08-27-2008, 04:26 PM   #1 (permalink)
Gareth
The Acquainted
 
Gareth's Avatar
 
Join Date: Jan 2008
Posts: 136
Thanks: 4
Gareth is on a distinguished road
Default Refreshing an image + preloading it

Hi guys,

Basically, I have a site which just basically uses the glob and array_rand functions to sweep my image dir and show a random image.

Now, I would like to implement two things, however the main thing is to refresh the image, without refreshing the whole page.
All it needs to be is a simple refresh: it doesn't need to know what image its going to show next, as the array_rand will sort that out on the refresh.

This leads me onto something which I reckon is more complicated. The very fact that it doesn't know what it is showing next means that it can't preload it- another feature I wish to implement.

I am not asking for any code (although I would really appreciate it if you did give me some), just your ideas on how they can be implemented..

Does anyone have any ideas?

Gareth

Last edited by Gareth : 02-03-2009 at 06:38 PM.
Gareth is offline  
Reply With Quote