var intMessageSize=1167; var sbgcolor='#C5031A'; var sdirection='left' //Die Scrollrichtung: Möglichkeiten: up, down, left, right var swidth=0; //Die Breite der Scroll-Leiste, dabei ist 0: maximale Breite var sheight=30; var sspeed=10; var stype='loop'; // Scroll-Type: loop = Endlosschleife, once = einmal danach anstelle dessen var strAltText=''; // statisch strAltText; var ns6div=""; var wholemessage='
';
function fnInitTicker(){
if (document.body.offsetWidth && swidth==0) {
swidth=document.body.offsetWidth-20;
} else if (window.innerwidth && swidth==0){
swidth=window.innerWidth;
}
document.getElementById ("laufleiste").innerHTML='';
ns6div=document.getElementById('slider');
ns6div.innerHTML=wholemessage
switch (sdirection) {
case 'left': ns6div.style.left=swidth;
break;
}
ns6slide();
}
function ns6marquee(){
}
function ns6slide(){
switch (sdirection) {
case 'up': if (parseInt(ns6div.style.top)>=sheight*(-1)) ns6div.style.top=parseInt(ns6div.style.top)-sspeed;
else ns6div.style.top=sheight;
break;
case 'down':if (parseInt(ns6div.style.top)<=sheight) ns6div.style.top=parseInt(ns6div.style.top)+sspeed;
else ns6div.style.top=-sheight;
break;
case 'left':if (parseInt(ns6div.style.left)>=intMessageSize*(-1)) {
ns6div.style.left=parseInt(ns6div.style.left)-sspeed;
} else {
if (stype=='loop') {
ns6div.style.left=swidth;
} else {
document.getElementById ("laufleiste").innerHTML=strAltMessage;
return;
}
}
break;
case 'right':if (parseInt(ns6div.style.left)<=swidth) ns6div.style.left=parseInt(ns6div.style.left)+sspeed;
else ns6div.style.left=-swidth;
break;
}
setTimeout("ns6slide()",100);
}