var intMessageSize=2646;
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
//In diesem Fall wird allerdings noch die Breite eines Banners abgezogen...
var sheight="100%";
var sspeed=10;
var stype='loop'; // Scroll-Type: loop = Endlosschleife, once = einmal danach anstelle dessen
var strAltText=''; // statisch strAltText;
var ns6div="";
var wholemessage='
Liebe Freunde,, auch „Das Neue Blatt" Nr. 17, S. 9, kündigt mich an ! Am Sonntag, 21. April um 20:15 Uhr bin ich zu sehen in der Musiksatire-Show „Brettl-Spitzn“, unbedingt reinschauen, es lohnt sich, Eure Cornelia |
';
var strAltMessage='';
function fnInitTicker(){
if (document.body.offsetWidth && swidth==0) {
swidth=document.body.offsetWidth;
} 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);
}