Afficher un texte en forme de vague


<html>
<head>
<title> </title>
<script LANGUAGE="JavaScript">
<!--
function vague(source)
{
var h = 7
var chaine = ""
var direction = 1

  for (var i = 0;i <= source.length; i++) {
    chaine+="<FONT SIZE="+h+">"+source.charAt(i)+"</FONT>"
    if (h == 7)
      direction = -1
    else
    if (h == 1)
      direction = 1
    h += direction
  }

return chaine
}
//-->
</script>
</head>

<body>
<SCRIPT LANGUAGE="JavaScript">
<!--
document.write(vague("votre chaîne de caractères"))
//-->
</SCRIPT>
</body>
</html>

 

Textes défilants (scrolling) Retour à la page JavaScript Texte en dégradé de couleurs