/***************************************************************************************************************/ /**************************************** FONCTIONS POUR LE ROLL DE LA BANNIERE ********************************/ /***************************************************************************************************************/ function regenerate(){ window.location.reload() } function regenerate2(){ if (document.layers) setTimeout("window.onresize=regenerate",450) } function update(indice, news) { BgFade(0xff,0xff,0xff, 0x00,0x00,0x00,10); //if (document.layers){ // document.tickertape.document.subtickertape.document.write(''+news[i]+'') // document.tickertape.document.subtickertape.document.close() // } // else //{ //document.all.subtickertape.innerHTML=news[i] //} //document.all.subtickertape.innerHTML=''+news[i]+'' document.all.tickertape.innerHTML = '
'+news[indice]+'
' tickerobject=document.all.subtickertape.style //tickerobject.bgColor = white if(indice < ( news.length-1) ) indice++ else indice=0 setTimeout("update("+indice+", news)",speed) } function BgFade(red1, grn1, blu1, red2, grn2, blu2, steps) { sred = red1; sgrn = grn1; sblu = blu1; ered = red2; egrn = grn2; eblu = blu2; inc = steps; step = 0; RunFader(); } function RunFader() { var epct = step/inc; var spct = 1 - epct; if (document.layers) tickerobject.bgColor = Math.floor(sred * spct + ered * epct)*256*256 + Math.floor(sgrn * spct + egrn * epct)*256 + Math.floor(sblu * spct + eblu * epct); else tickerobject.backgroundColor= Math.floor(sred * spct + ered * epct)*256*256 + Math.floor(sgrn * spct + egrn * epct)*256 + Math.floor(sblu * spct + eblu * epct); if ( step < inc ) { setTimeout('RunFader()',50); } step++; } /***************************************************************************************************************/ /**************************************** FONCTIONS D'AFFICHAGE DU MENU ********************************/ /***************************************************************************************************************/ function montreMenu(num){ for (var i=0; i"); document.write("td.menu {"); document.write(" font-family: "+policeMenu+";"); document.write(" font-size: "+taillePoliceMenu+"px;"); document.write(" color: "+couleurPoliceMenu+";"); document.write(" border: 1px solid "+couleurBordure+";"); document.write(" background-color: "+couleurFond+";"); document.write("}"); document.write("table.ssmenu {"); document.write(" font-family: "+policeMenu+";"); document.write(" font-size: "+taillePoliceMenu+"px;"); document.write(" color: "+couleurPolicessMenu+";"); document.write(" border: 1px solid "+couleurBordure+";"); document.write(" background-color: "+couleurFond2+";"); document.write("}"); document.write(""); document.write(""); //1ere boucle for (i=0; i"); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); // fin 1 ere boucle } document.write("
"); }