Randomised links

Display a random image from a selection

Create a directory containing the image selection, naming the directory so that its extension is .rand, eg foo.rand.

Then in your HTML source, simply use <img src="foo.rand/"> to pick one of those images.

Enable a link to choose a random HTML page upon selection

Create a directory containing only directories, inside which contain index files, naming the directory so that its extension is .rand, eg foo.rand.

For example

foo.rand
      |
      |----- a
      |      |---- index.html
      |
      |----- b
      |      |---- index.html
      |
      |----- c
             |---- index.html

Then in your HTML, use <a href="foo.rand/">. This will cause the client to be redirected to one of menu pages under a,b or c.
Back to the features index