VR-T
CSS
HTML
Javascript
Paint Shop Pro
PHP
Misc.
Graphics
Interactions
Clear

Random Links

This tutorial shows you a way to randomly display a link.

File 1: The file where you want the random link to show up.

The only thing you should change is the url to the actual links file. Replace LINKSFILE.php with the file, or better yet, the absolute path to the file.

File 2: The LINKSFILE.php file itself.

The key to this file is each link code needs to be on it's own line. That's it. Nothing special.

Now when you use the code on the page you want the links to show up, it will randomly display one of your links on the links file.

You can modify this to include anything else. Instead of links you can show quotes, or other such things. Just change the file that is included, and that's it.

<-back