// JavaScript Static Text Slideshow

var slideArray = new Array()

slideArray[0]= '<a class="testimonyLink" href="testimonies.php"><h2>In Good Hands..</h2><p>"We knew that building our new home was not going to be an easy task for us. We felt though after the 1st meeting with LeBlanc Custom Homes that we were in good hands.."</p><p class="testimonyName"><em>~ Robert and Carmelle Dupuis</em></p></a>';

slideArray[1]= '<a class="testimonyLink" href="testimonies.php"><h2>Above and Beyond..</h2><p>"We are very happy with the quality of the product and the services offered. LeBlanc Custom Homes went above and beyond.."</p><p class="testimonyName"><em>~ Pauline Davis & Mathieu Cormier</em></p></a>';

slideArray[2]= '<a class="testimonyLink" href="testimonies.php"><h2>The Quality was Superior..</h2><p>"Our realtor took us to see the new homes of a couple of different builders. Our first impression of LeBlanc Custom Homes was that the quality was superior, .. "</p><p class="testimonyName"><em>~ Mark, Kimberley, Benjamin, Zachary, Jonah & Carys</em></p></a>';

function textSlideShow()

{

var total_slides;

total_slides=Math.floor(Math.random()*slideArray.length)

document.getElementById('div_display').innerHTML=slideArray[total_slides];

setTimeout("textSlideShow()",8000); //ie. 10000 is 10 seconds

}


/*
And then call this javascript function inside the HTML div element in which you want to display text slideshow like below.

<div id="div_display"><script type="text/javascript" language="javascript"> textSlideShow();</script></div>
*/