View Full Version : image swap on refresh??

11-09-2009, 04:01 PM
i'd like to have a different image come up in the same place every time the page is refreshed or visited. i've seen people do this for gallery pages where they have one photo large on the index page and it changes every time i visit it. i have also seen it applied to bg's. any ideas how this is done?

11-09-2009, 07:18 PM
Basically have JavaScript write out your IMG tag every time.
I don't have one handy right now, but if you Google something like 'random image JavaScript' it should come up with something.

11-09-2009, 09:29 PM
thanks. i'll give it a try.