changing photographs automatically

  Smokeyone 12:19 04 Nov 07

As a newbie to web design I am teaching myself the hardway and trying to learn html. Text photographs layout so far ..
On some sites, every time you go there the first page shows a different photograph, same layout etc etc but different picture depicted.
How is this done please, a friend told me I need to learn about cgi to do this but after a google search I am none the wiser.
Perhaps someone could point me in the right direction please.
Thanks 22:20 04 Nov 07

they are picked at random from a database using php or similar.

  Smokeyone 09:24 05 Nov 07

You couldn't explain a bit more please could you !

  Eric10 12:19 05 Nov 07

Using Javascript click here and using PHP click here
I haven't used either of these but just found them in Google.

This thread is now locked and can not be replied to.

Surface Pro (2017) vs Surface Pro 4

20 groundbreaking 3D animation technologies coming to Siggraph 2017

iPad Pro 12.9 vs Surface Pro 5