< script LANGUAGE="JavaScript">
osd +="ICI TU PEU METTRE UN TEXTE SI TU VEUT";
var timer;
var msg = " ";
function scrollMaster ( ) {
msg = customDateSpring(new Date())
clearTimeout(timer)
msg += " " + showtime() + " " + osd
for ( var i= 0; i < 100; i++){
msg = " " + msg;
}
scrollMe()
}
function scrollMe(){
window.status = msg;
msg = msg.substring(1, msg.length) + msg.substring(0,1);
// le chifre 20 c la vitesse de defilement + c petit + ca va vite
timer = setTimeout("scrollMe()", 20);
}
function showtime ( ){
var now = new Date();
var hours= now.getHours();
var minutes= now.getMinutes();
var seconds= now.getSeconds();
var months= now.getMonth();
var dates= now.getDate();
var years= now.getYear();
var timeValue = " " //lwf
timeValue += ( (months > 9) ? " " : " " )
timeValue += ( (dates > 9) ? " " : " " )
timeValue = ( months +1)
timeValue +="/"+ dates
timeValue +="/"+ years
var ap="Du matin"
if ( hours == 12) {
ap = " De l´après-midi"
}
if ( hours == 0) {
hours = 12
}
if(hours > = 13){
hours -= 12;
ap="De l´aprés-midi"
}
var timeValue2 = " " + hours
timeValue2 += ( (minutes < 10) ? " :0":":") + minutes + " " + ap
return timeValue2;
}
function MakeArray(n) {
this.length = n
return this
}
monthNames = new MakeArray(12)
monthNames[1] = " Janvier"
monthNames[2] = " Février"
monthNames[3] = " Mars"
monthNames[4] = " Avril"
monthNames[5] = " Mai"
monthNames[6] = " Juin"
monthNames[7] = " Juillet"
monthNames[8] = " Août"
monthNames[9] = " Septembre"
monthNames[10] = " Octobre"
monthNames[11] = " Novembre"
monthNames[12] = " Décembre"
daysNames = new MakeArray(7)
daysNames[1] = " Dimanche"
daysNames[2] = " Lundi"
daysNames[3] = " Mardi"
daysNames[4] = " Mercredi"
daysNames[5] = " Jeudi"
daysNames[6] = " Vendredi"
daysNames[7] = " Samedi"
function customDateSpring(oneDate) {
var theDay = daysNames[oneDate.getDay() +1]
var theDate =oneDate.getDate()
var theMonth = monthNames[oneDate.getMonth() +1]
return theDay + " " + theDate + " " + theMonth + " " + " ,"
}
scrollMaster();
< /script>
on dit merci qui ? ? lol
et ça c certaint ça marche vu que je l sur mon site