I got this script from a post that Coothead had written for someone else and it works great, but I also need the quotes to appear randomly, I have seen the scripts that can do this, but I am not sure how to add them so they will work, any help would be appreciated.
Thanks
Code:/************************************ Editable values **************************************************/ var myquotes=[ '<p>"Testimonial 1 </p>', '<p>"Testimonial 2</p>', '<p>"Testimonial 3</p>' ]; /* This rotates the quote every 20 seconds. Replace 20 with (the number of seconds you want) * 1000 */ var delay=20*1000; var rndm; /************************************************************************************************************/ function rotatequote() { thequote=myquotes.shift(); /* Pull the top one */ myquotes.push(thequote); /* And add it back to the end */ document.getElementById('quotetext').innerHTML=thequote; setTimeout(function(){rotatequote()},delay); } window.addEventListener? window.addEventListener('load',rotatequote,false): window.attachEvent('onload',rotatequote);






Bookmarks