/*\/Â¯\/Â¯\/Â¯\/Â¯\/Â¯\/Â¯\/Â¯\/Â¯\/Â¯\/Â¯\/Â¯\/Â¯\/Â¯\
\                                        /
/  =-=-=-=-=-= Text Changer =-=-=-=-=-=  \
\                                        /
/                                        \
\  Author:                               /
/     Nick Trevino                       \
\                                        /
/                                        \
\  Description:                          /
/     This code changes the text within  \
\     the <div> tag below. You can show  /
/     any number of lines, and it still  \
\     will show them all! It also stops  /
/     changing the text if the user has  \
\     their mouse over the text. If you  /
/     don't want mouse overs to stop it  \
\     from changing, then set stopOK to  /
/     0 instead of 1.                    \
\                                        /
/  Usage Tips:                           \
\     You can use this and the HTML tag  /
/     <img> to make it change different  \
\     images on a set timer! Or you can  /
/     also use it to change links using  \
\     the stopping feature so users can  /
/     click the links! See if there are  \
\     other ways you can use it.         /
/                                        \
\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\*/


// Just put the different bits of text into the array separated by a comma.
// You can use HTML tags also. If you need to use quotes, use the single quote,
// ( ' ) or use the escape character ( \" ), both without parenthesis.

textLines=new Array(
"Aktuelle Termine zu ShowBeeDoo finden Sie bei <a href='http://www.carola-bandari.de/termine/index.html' target='blank'>www.carola-bandari.de</a>",
"N&auml;chster &ouml;ffentlicher Termin: <a href='http://carola-bandari.de/termine/index.html#zeven04_12' target='blank'>&raquo;Eine Reise durch die Zauberwelt des Musicals&laquo; </a> &middot; in Zeven SA 14. April 2012",
"Wir haben noch Termine f&uuml;r die musikalischen Traumst&auml;dte &raquo;Concert in dinner&laquo; frei"
);


// The Text Line to start on (The first line is line 0).
numOn=0;

// Set the delay time inbetween each change (in seconds, decimal values can be used).
delay=3;

// Set this variable to 0 to stop mouse overs from stopping
// the text from changing.
stopOK=1;

change=1;
window.onload=start;


function start(){
  setTimeout("Change()",1);
}


function Change(){

// Check to see if the user has their mouse over the text.
 if(change==1){

// Make sure we are on a valid Line Number and if not, set it to
// the starting line.
  if(numOn>=textLines.length||numOn<0){numOn=0}

// Set the text inside the <div> to the specified line number.
  document.getElementById("textChanger").innerHTML= textLines[numOn];

// Increase the line number by one to get the next string.
  numOn++;
 }

// Call this function again to write the string to the <div>.
  setTimeout("Change()",delay*1000);
}

//    	This script downloaded from www.JavaScriptBank.com
// 	Come to view and download over 2000+ free javascript at www.JavaScriptBank.com

