Posted by Nick Theodorakis on 03/11/06 20:03
Chris Ianson wrote:
> Hi, I'm looking for a simple newbie way to put quotes into HTML code, and
> have them randomise each time the page is refreshed. What's the easy
> solution?
>
> Thanks in advance.
>
>
You can't do this only with html; you need some kind of scripting
language. There is a premade script for this on the nms website:
<http://nms-cgi.sourceforge.net/>
Their scripts can be found here:
<http://nms-cgi.sourceforge.net/scripts.shtml>
The one you want is called "Random Text"
You need cgi/perl on your host (and ssi enabled), and know how to change
permissions on your cgi file.
An example of this script in action can be found here:
<http://www.stjohnsroch.org/randomquote.html>
Nick
--
Nick Theodorakis
nick_theodorakis@hotmail.com
contact form:
http://theodorakis.net/contact.html
[Back to original message]
|