/***********************************************
* Pausing updown message scroller- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
//configure the below five variables to change the style of the scroller
var scrollerdelay='3000'; //delay between msg scrolls. 3000=3 seconds.
var scrollerwidth='150px';
var scrollerheight='78px';
var scrollerbgcolor='';
//set below to '' if you don't wish to use a background image
var scrollerbackground='';
//configure the below variable to change the contents of the scroller
var messagesxxx=new Array();
messagesxxx[0]='
..that is quickly gaining a reputation for becoming one of the most visited.
';
messagesxxx[1]='The only truly global collector and classic car website on the Internet..
';
///////Do not edit pass this line///////////////////////
var ie=document.all;
var dom=document.getElementById;
if (messagesxxx.length>2)
iii=2;
else
iii=0;
function move(whichdiv){
tdiv=eval(whichdiv);
if (parseInt(tdiv.style.top)>0 && parseInt(tdiv.style.top)<=5){
tdiv.style.top=0+"px";
setTimeout("move(tdiv)",scrollerdelay);
setTimeout("move2(second2xxx_obj)",scrollerdelay);
return;
}
if (parseInt(tdiv.style.top)>=tdiv.offsetHeight*-1){
tdiv.style.top=parseInt(tdiv.style.top)-5+"px";
setTimeout("move(tdiv)",50);
}
else{
tdiv.style.top=parseInt(scrollerheight)+"px";
tdiv.innerHTML=messagesxxx[iii];
if (iii==messagesxxx.length-1)
iii=0;
else
iii++;
};
}
function move2(whichdiv){
tdiv2=eval(whichdiv);
if (parseInt(tdiv2.style.top)>0 && parseInt(tdiv2.style.top)<=5){
tdiv2.style.top=0+"px";
setTimeout("move2(tdiv2)",scrollerdelay);
setTimeout("move(first2xxx_obj)",scrollerdelay);
return;
}
if (parseInt(tdiv2.style.top)>=tdiv2.offsetHeight*-1){
tdiv2.style.top=parseInt(tdiv2.style.top)-5+"px";
setTimeout("move2(second2xxx_obj)",50);
}
else{
tdiv2.style.top=parseInt(scrollerheight)+"px";
tdiv2.innerHTML=messagesxxx[iii];
if (iii==messagesxxx.length-1)
iii=0;
else
iii++;
};
}
function startscrollxxx(){
first2xxx_obj=ie? first2xxx : document.getElementById("first2xxx");
second2xxx_obj=ie? second2xxx : document.getElementById("second2xxx");
move(first2xxx_obj);
second2xxx_obj.style.top=scrollerheight;
second2xxx_obj.style.visibility='visible';
}
if (ie||dom){
document.writeln("");
document.writeln("
");
document.writeln("
");
document.write(messagesxxx[0]);
document.writeln("
");
document.writeln("
");
document.write(messagesxxx[dyndetermine=(messagesxxx.length==1)? 0 : 1]);
document.writeln("
");
document.writeln("
");
document.writeln("
");
}
if (window.addEventListener)
window.addEventListener("load", startscrollxxx, false);
else if (window.attachEvent)
window.attachEvent("onload", startscrollxxx);
else if (ie||dom)
window.onload=startscrollxxx;