4 replies [Last post]
Genny
Offline
Regular
Philippines
Last seen: 15 years 3 weeks ago
Philippines
Joined: 2005-11-08
Posts: 35
Points: 0

What web development tool is used so that an image can change when you re-enter that certain page again?

for example, i have an image with a bear in it. What i would expect to see are bear, duck, and dogs. First i loaded a page and i see a bear picture, we i reloaded the page, the pic changed displaying a dog, i did it again and it showed the bear again..

and how do you do this?

a very good example of what i'm talking about are ad banners.

Thank you

Tags:
Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 7 years 31 weeks ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

Changing images via browsing

I think most ads are served up using javascript, however, you could use any type of script (PHP, ASP, JSP, Coldfusion etc.) to randomly serve up images or text or whole blocks of content.

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

Genny
Offline
Regular
Philippines
Last seen: 15 years 3 weeks ago
Philippines
Joined: 2005-11-08
Posts: 35
Points: 0

Changing images via browsing

Ah good, i can do PHP but how to do it that i don't know

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 7 years 31 weeks ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

Changing images via browsing

A List Apart has an article on it: http://www.alistapart.com/articles/randomizer/

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

Genny
Offline
Regular
Philippines
Last seen: 15 years 3 weeks ago
Philippines
Joined: 2005-11-08
Posts: 35
Points: 0

Changing images via browsing

ok thanks