JavaScript: Random Quote Generator
Posted on May 18, 2005
I know, I know, it is not PHP and why would I do something in JavaScript that I can do in PHP. I had a need to display a random banner on an HTML page that could not parse PHP. Here is what I wrote.
View the script in action here
First of all, in an effort to keep your web page code clean of a bunch of javascript I suggest calling the script from a file. To do so, place the following call in the location on your page that you wish the random text to appear.
<script language="javascript" src="quotes.js"></script>
Download the JS Random Quote script here (2kb) Current Download Count: 3319
Questions: Email Me
Filed Under JavaScript | 11 Comments
God Speaks - Random Quote Generator & RSS
Posted on May 8, 2005
{{LEARN PHP HERE}}
This is a script that I wrote to display the quotes that surfaced on billboards across the country. These billboards contained quotes from God and the source of the billboards is still a mystery. The majority of the output of this script is HTML and Text, however I used a 1px x 1px spacer to force the height to 50px.
View this script in action: here
Download the God Speaks script here (2kb) Current Download Count: 3354
To include this script on your page paste the following “PHP include” in the location on your site in which you want the billboard to show. Your site must be in PHP or must parse PHP code when pages are loaded.
<?php
include('http://www.clarksco.com/dev/god_speaks/index.php');
?>
Questions: Email Me
God Speaks RSS Feed:
http://www.clarksco.com/rss/god_speaks_rss.php
![]()
Filed Under PHP | 6 Comments

