Help - Search - Members - Calendar
Full Version: Quote Generator - Help
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
mdfernott
Hi There

Please can you help me. I have this code in my website which displays a quote:

<td valign="top" height="100%"><p align="center" class="style8">&nbsp;</p>
<p align="center" class="style8">&nbsp;<span class="style10">Photography, as a powerful medium of expression and communications, offers an infinite variety of perception, interpretation and execution</span>.</p>
<p align="right" class="style8">- Ansel Adams</p>

But I want the quote to generate at random from a list so the visitor gets a different quote each time.

Here are the quotes I want to use:

Photography is more than a medium for factual communication of ideas. It is a creative art.
- Ansel Adams

The negative is the equivalent of the composer's score, and the print the performance
- Ansel Adams

A photographer's main instrument is his eyes. Strange as it may seem, many photographers choose to use the eyes of another photographer, past or present, instead of their own. Those photographers are blind
- Manuel Alvarez Bravo

Photography is not about cameras, gadgets and gismos. Photography is about photographers. A camera didn't make a great picture any more than a typewriter wrote a great novel
- Peter Adams

The camera is a remarkable instrument. Saturate yourself with your subject, and the camera will all but take you by the hand and point the way
- Margaret Bourke-White

To see in color is a delight for the eye but to see in black and white is a delight for the soul
- Andri Couldwell

A good photograph is one that communicate a fact, touches the heart, leaves the viewer a changed person for having seen it. It is, in a word, effective
- Irving Penn

It is only with the heart that one can see rightly. What is essential is invisible to the eye
- Antoine de Saint-Exupéry

One of these days, I'm going to publish a book of all the pictures I did not take. It is going to be a huge hit
- René Burri

Could someone please help me with the code I would need to use to achieve this> I will really apprecite it.

Happy Xmas!
dharma
For this You have to use php
(your server have to support it)

php scripts for random quotes you can find here
Peter1968
Or perl, or python, or one of a number of languages.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.