If you have a multitude of links
and not enough space to display them all, how about using Matt's Random Link
generator to mix it up a bit? This script randomly selects a URL from a database
file within your web site and displays the URL link from your web page. Each
time your web page loads a different link appears.
Installation Procedure
rand_link.pl - The Perl script
which generates the random link.
Note: This is
required since the application is written in Perl.
# Define Variables
$linkfile = The system path to the database containing the URLs.
The system path is not the same as a
URL. If your domain name was yourdomain.com the system path would be /u/web/yourdo
where "yourdo" is the account userID. As such, the Define
Variables section of the Links script would follow this format:
# Set Variables
$linkfile = "/u/web/<userid>/database.txt";
Be sure to substitute your domain
name and userID in the example above. Although Matt's code is accurate, we
recommend using the Perl Script Checker within your account Control Panel
when installing any Perl script.
http://www.cnn.com
http://www.news.com
http://www.cnet.com
http://www.yahoo.com
http://www.lycos.com
http://www.webcrawler.com
To test the script, add the following tags to your HTML document:
<a href="/cgi-local/rand_link.pl">Random Link</a>
Special Notes