// JavaScript Document
var myquotes = new Array(
'
Reach out to your customers and get a user-friendly website optimised for mobile phones. ',
'We provide web design and mobile web design services at affordable prices. ',
'Connect with your customers, keep them updated and increase site traffic. ',
'View our latest projects that show what we can do! ',
'Use the Request a Quote form to give the details of your requirements. ' // Leave the last quote without a comma at the end
);
var currentIndex = -1;
var timeout = 5000;
var isContinue = true;
function jump(iIndex)
{
currentIndex = iIndex
thequote = myquotes[currentIndex]; //Pull the top one
document.getElementById('imagecontainer').innerHTML = thequote;
isContinue = false;
}
function rotate()
{
if(isContinue)
{
//Move next
var nextIndex = currentIndex + 1;
if(nextIndex > myquotes.length -1)
{
currentIndex = 0;
}
else
{
currentIndex = nextIndex;
}
//Get next (current)
thequote = myquotes[currentIndex]; //Pull the top one
//Show
document.getElementById('imagecontainer').innerHTML = thequote;
}
else
{
isContinue = true;
}
// This rotates the quote every 10 seconds.
// Replace 10000 with (the number of seconds you want) * 1000
t=setTimeout("rotate()",timeout);
}