| Site Map | WizTools.org | jCraze Blog |
![]() |
Subhash's Guide to Creating a Quote TickerPre-requisiteThe quote ticker will be made & hosted using the following tools:
FortuneFirst I will introduce you to this wonderful program. I run RedHat Linux 7.1. This software is installed by default in:/usr/games/fortune What this app does is take random quotes from text files located at: /usr/share/games/fortunes/ & displays them at the terminal. You also have the power to create custom quote files. The files are neatly classified as 'love', 'poetry', etc. Suppose you want only quotes from the file 'love', you will have to use the '-e' operator: #fortune -e love Every time you want to know what are the subjects on which quotes are available you need not change directory. You can use the '-f' operator: #fortune -f For more options read the info & man pages of this app. SSINow we move on to making this app web enabled. We will be using Server Side Includes. The code for displaying the standard output of the executable 'fortune' is:<!--#exec cmd="/usr/games/fortune" --> You can also use command-line options: <!--#exec cmd="/usr/games/fortune -e love" --> And don't forget to save your file with the extension '*.shtml'. If server side includes is enabled, this should work. Full code is given below: <HTML> <HEAD> </HEAD> <BODY> <H2 ALIGN=CENTER>Quot Ticker</H2> <CENTER><!--#exec cmd="/usr/games/fortune -e love" --></CENTER> </BODY> </HTML> The AlternativeDon't have a server in your command? Not to worry. The net is there to back you!!! I discovered the Goth Quote ticker in this web-site:http://www.brunching.com/toys/toy-gothquotex.html The code they gave me to paste in my page was(check for updates): <A HREF="http://www.brunching.com/toys/toy-gothquotex.html"><IMG SRC="http://www.brunching.com/cgi/gothgif.cgi" BORDER=0 ALT="A Quote" WIDTH="275" HEIGHT="120"></A> This looks thus: |
Sign Guestbook
|
Who is Subhash?
The contents of this site are copyright© 2000-2008, indiWiz.com. All Rights Reserved.