centrer en javascript - HTML/CSS - Programmation
Marsh Posté le 26-06-2006 à 14:01:27
C simple :
les balise <center></center> ou <p align="center"></p> ou <div style="text-align:center"></div>
Code :
|
tu dois conaitre sa si tu a apris l'HTML
Marsh Posté le 26-06-2006 à 11:26:37
comment faire pour center ce texte animé??
k2000text = "De MOUVAUX";
k2000pos = 0;
k2000increment = 1;
function k2000effet()
{
k2000aff = "";
for(k2000a=0;k2000a<k2000text.length;k2000a++)
{
k2000lettre = k2000text.charAt(k2000a);
if(k2000a == k2000pos || k2000a == (k2000pos+k2000increment))
k2000aff += "<FONT COLOR=red>"+k2000lettre+"</FONT>";
else
k2000aff += k2000lettre;
}
document.getElementById("k2000" ).innerHTML = k2000aff;
if(k2000pos == k2000text.length)
k2000increment = -1;
if(k2000pos == 0 && k2000increment== -1)
k2000increment = 1;
k2000pos = k2000pos+k2000increment;
timer = setTimeout("k2000effet()",60)
}
</SCRIPT>
<!-- FIN DU SCRIPT -->