var theText = "EUNEVNEIB";
function nextSize(i,textLength) {
return (14*Math.abs( Math.sin(i/(textLength/3.14))))+8;/*TAILLE TEXTE*/
}
function sizeCycle(text,dis) {
zob = ""
for(i = text.length; i > (-1) ; i--) {
size = parseInt(nextSize(i +dis,text.length));
zob += "<u><font color=#66CCFF style='font-size: "+ size +"pt'>" +text.substring(i,i+1)+ "</font></u>";/*COULEUR TEXTE*/
}
document.getElementById("theDiv").innerHTML = zob;
}
function doWave(n) {
sizeCycle(theText,n)
if (n > theText.length) {n=0}
setTimeout("doWave(" + (n+1) + ")", 150);/*VITESSE DE DEFORMATION  DU TEXTE*/
}

