mardi 4 octobre 2011

Texte clignotant dans une présentation (T'es pas tenté(e) toi?!)

Pour obtenir un joli texte qui clignote comme ceci:
Salut!!!


Vous devez entrer le code suivant:
<html>
<head>
<title>Clignotement</title>
<script language="JavaScript">
i=0;
function couleur()
{
   tabColoris = new Array ("#ffffff","#CE5852");// Vous pouvez changer les couleurs ou en rajouter
   if (i+1 == tabColoris.length) i=0;
   else i++;
   document.getElementById("texte").setAttribute('color',tabColoris[i]);
   setTimeout("couleur()",500);
}
</script>
</head>
<body topmargin="0" leftmargin="0" onload="couleur()">
<p align="center"><font id="texte" size="8">Votre texte ici</font></b></p>
</form>
</body>
</html>

ou 
 
<p class="MsoNormal" style="background: none repeat scroll 0% 0% rgb(102, 0, 102); text-align: center;" _mce_style="background: none repeat scroll 0% 0% #660066; text-align: center;"><span class="h1" style="font-family: comic sans ms,sans-serif; background-color: rgb(136, 136, 136);"><span _mce_style="font-size: 18pt; line-height: 115%;" style="font-size: 18pt; line-height: 115%;">&nbsp;</span><span class="h3" style="text-decoration: blink; color: rgb(255, 0, 255); background-color: rgb(255, 255, 255);">Texte ici</span></span></p>
 
Premier exemple:  
("#ffffff","#CE5852") c'est la couleur, vous pouvez changer les couleurs en allant ici ou en ajouter.
Second exemple:
style="font-family: comic sans ms, c'est la police et je vous propose de remplacer comic sans ms par ça:
 
French Script, Mistral, Purisa, Freestyle, Arial,Century Gothic, Vivaldi etc bref toutes les polices du logiciel Traitement de texte.




Bisous, F♥