- <html>
- <head>
- <script language="JavaScript">
-
- var theText = "Bienvenue dans mon script";
-
- function nextSize(i,incMethod,textLength)
- {
- if (incMethod == 1) return (72*Math.abs( Math.sin(i/(textLength/3.14)))
- );
- if (incMethod == 2) return (255*Math.abs(
- Math.cos(i/(textLength/3.14))));
- }
-
- function sizeCycle(text,method,dis)
- {
- output = "";
- for (i = 0; i < text.length; i++)
- {
- size = parseInt(nextSize(i +dis,method,text.length));
- output += "<font style='font-size: "+ size +"pt'>"
- +text.substring(i,i+1)+ "</font>";
- }
- theDiv.innerHTML = output;
- }
-
- function do_vague(n)
- {
- sizeCycle(theText,1,n);
- if (n > theText.length) {n=0}
- setTimeout("do_vague(" + (n+1) + ")", 50);
- }
- </script>
-
- </head>
-
- <body onload="do_vague(0)" bgcolor="#FFFFFF" " bgproperties="fixed">
-
-
- <td width="82%" align="center"> <a href="indexdusite.htm" target="_blank">
- </a><font size="5"><b>Ce texte ondule bien ???</b></font></td>
-
- <div id="theDiv" style="position:absolute; left:133px; top:261px; width:510px; height:115px; z-index:1"></div>
-
-
- </body>
- </html>
<html>
<head>
<script language="JavaScript">
var theText = "Bienvenue dans mon script";
function nextSize(i,incMethod,textLength)
{
if (incMethod == 1) return (72*Math.abs( Math.sin(i/(textLength/3.14)))
);
if (incMethod == 2) return (255*Math.abs(
Math.cos(i/(textLength/3.14))));
}
function sizeCycle(text,method,dis)
{
output = "";
for (i = 0; i < text.length; i++)
{
size = parseInt(nextSize(i +dis,method,text.length));
output += "<font style='font-size: "+ size +"pt'>"
+text.substring(i,i+1)+ "</font>";
}
theDiv.innerHTML = output;
}
function do_vague(n)
{
sizeCycle(theText,1,n);
if (n > theText.length) {n=0}
setTimeout("do_vague(" + (n+1) + ")", 50);
}
</script>
</head>
<body onload="do_vague(0)" bgcolor="#FFFFFF" " bgproperties="fixed">
<td width="82%" align="center"> <a href="indexdusite.htm" target="_blank">
</a><font size="5"><b>Ce texte ondule bien ???</b></font></td>
<div id="theDiv" style="position:absolute; left:133px; top:261px; width:510px; height:115px; z-index:1"></div>
</body>
</html>