function writeScroll() { document.write('
'); } // resize automatique window.onresize = reloadScroller; // création du scroller var myScroller = new Scroller(0, 0, 190, 95, 0, 4, "center"); myScroller.setColors("#000000", "#FFFFFF", "#D8D8D8"); // ajout des informations myScroller.addItem('Icône perturbation
DEVIATION DIM 2 ET DIM 3 Dimanche 5 septembre'); myScroller.addItem('Icône perturbation
DEVIATION LIGNES 8 ET DIM 6'); myScroller.addItem('Icône perturbation
Arrêts MARNE et CHABEUIL reportés'); myScroller.addItem('Icône perturbation
PERTURBATIONS SUR LE RESEAU MARDI 7 SEPTEMBRE 2010'); myScroller.addItem('Icône perturbation
DEVIATION LIGNE 9 SUR ST MARCEL LE LUNDI 6 SEPTEMBRE'); function startScroll() { var InfoLayer; var lx, ly; // Locate placeholder layer so we can use it to position the scrollers. InfoLayer = getLayer("bandeau"); lx = getAbsX(InfoLayer); ly = getAbsY(InfoLayer); if (isIE) ly+=8; // décalages MAC if (isIE && isMac) { x += 10; y += 15; } else if (isSF) { x += 8; y += 8; } // Create the first scroller and position it. myScroller.create(); myScroller.hide(); myScroller.moveTo(lx, ly); myScroller.setzIndex(100); myScroller.show(); } function reloadScroller() { // Locate new placeholder layer so we can use it to position the scrollers. var InfoLayer = getLayer("bandeau"); lx = getAbsX(InfoLayer); ly = getAbsY(InfoLayer); if (isIE) ly+=8; // décalages MAC if (isIE && isMac) { x += 10; y += 15; } else if (isSF) { x += 8; y += 8; } // Move the scroller myScroller.moveTo(lx, ly); }