View Single Post
Old 03-27-2007, 04:53 AM   #1 (permalink)
montsa007
Junior Member
 

Join Date: Mar 2007
Posts: 4
iTrader: 0 / 0%
Hunter Bux: 10.00
montsa007 is on a distinguished road
Thumbs up Random quote generator script,random quotes in ur site (javascript)

a very simple javascript to generate random quotes at any place of a webpage you want it to appear and any quote which you want to appear. Just insert this script in your webpage wherever you want the random quote to appear.
remember change quotes with yours
Code:
<script language="JavaScript">
var Quotation=new Array() 
Quotation[0] = "Time is of the essence! Comb your 
hair.";
Quotation[1] = "Sanity is a golden apple with no 
shoelaces.";
Quotation[2] = "The image is more than an idea. It 
is a vortex or cluster of fused ideas and is endowed 
with energy. ~ Ezra Pound";
Quotation[3] = "Honesty blurts where deception 
sneezes.";
Quotation[4] = "Pastry satisfies where art is 
unavailable.";
Quotation[5] = "Image creates desire. You will 
what you imagine. ~ J. G. Gallimore";
Quotation[6] = "The image cannot be dispossessed 
of a primordial freshness, which idea can never 
claim. An idea is derivative and tamed. The image 
is in the natural or wild state, and it has to be 
discovered there, not put there, obeying its own 
law and none of ours. ~John Crowe Ransom";
Quotation[7] = "Wishes are like goldfish with 
propellors.";
Quotation[8] = "Love the river's \"beauty\", but live 
on a hill.";
Quotation[9] = "Invention is the mother of too 
many useless toys.";
Quotation[10] = "I want to know God's thoughts... 
the rest are details.~ Albert Einstein ";
// 
======================================
// Do not change anything below this line
// 
======================================
var Q = Quotation.length;
var whichQuotation=Math.round(Math.random()*
(Q-1));
function showQuotation(){document.write(Quotation
[whichQuotation]);}
showQuotation();
</script></p>
quotes can be increased but should be only 1 liners!
montsa007 is offline   Reply With Quote