»
EnglishFrenchVietnamese

Print - Random Text Rotator script - JavaScriptBank.com

Full version: jsB@nk » Text » Animation » Random Text Rotator script
URL: http://www.javascriptbank.com/random-text-rotator-script.html

Random Text Rotator script © JavaScriptBank.comYou can add an unlimited number of quotations and script will view them in random order

Full version: jsB@nk » Text » Animation » Random Text Rotator script
URL: http://www.javascriptbank.com/random-text-rotator-script.html



JavaScript
<script language="JavaScript">/*     This script downloaded from www.JavaScriptBank.com     Come to view and download over 2000+ free javascript at www.JavaScriptBank.com*/function rotateEvery(sec){var Quotation=new Array()// QUOTATIONSQuotation[0] = 'First quotation';Quotation[1] = 'Second quotation';Quotation[2] = 'Third quotation';Quotation[3] = 'Fourth quotation';Quotation[4] = 'Fifth quotation';Quotation[5] = 'Sixth quotation';Quotation[6] = 'You can add <b>as many</b> quotations <b>as you like</b>';var which = Math.round(Math.random()*(Quotation.length - 1));document.getElementById('textrotator').innerHTML = Quotation[which];setTimeout('rotateEvery('+sec+')', sec*1000);}</script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<body onload="rotateEvery(1)"><div id="textrotator"><!--Quotations will be displayed here--></div></body><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->