|Latest Version: 1.1||Copyright © 2003, Ross A. Beyer|
Below I include the HTML that I use to call random_gallery with. I use server side includes, for the most part, to include the output from random_gallery, but you could probably do all kinds of other things. To see what the program returns, you can look at the source of this page.
There are only ten images in the example gallery, so don't be surprised if you get multiples on this example page.
This will return just the image, using the default random selection mechanism, meaning it will be different every time you load this page.
This is the same as above, but the image is wrapped in a link that leads to the full page for this image in the gallery.
This is the same as the first, but it includes the caption for the image.
This picture of Neptune was produced from the last whole planet images taken through the green and orange filters on the Voyager 2 narrow angle camera. The images were taken at a range of 4.4 million miles from the planet, 4 days and 20 hours before closest approach. The picture shows the Great Dark Spot and its companion bright smudge; on the west limb the fast moving bright feature called Scooter and the little dark spot are visible. These clouds were seen to persist for as long as Voyager's cameras could resolve them. North of these, a bright cloud band similar to the south polar streak may be seen. (PIA01492)
This will show the same image all day.
This 'family portrait,' a composite of the Jovian system, includes the edge of Jupiter with its Great Red Spot, and Jupiter's four largest moons, known as the Galilean satellites. From top to bottom, the moons shown are Io, Europa, Ganymede and Callisto. (PIA00600)
This specifies to always return the sun.jpg image.
This uses just the return=url option. The downside is that you can't use random_gallery to automatically write the alt and title attributes this way.
This also uses the return=url option, but does so from within the specification of Cascading Style Sheets to make the background of this div randomize.
Random Backgrounds with CSS
|Last Updated: 30 Nov 2003|