<Html>
<Head><Title>Grow Text by Peeyush Nigam</Title></Head>
<script language="JavaScript">
var theText = "PARI WEB SERVICES";
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 doWave(n)
{
sizeCycle(theText,1,n);
if (n > theText.length) {n=0}
setTimeout("doWave(" + (n+1) + ")", 50);
}
</script>
<body onload="doWave(12)">
<div ID="theDiv" align="center">© PARI WEB SERVICES</div>
</Body>
</Html>
Animated Text
By Peeyush Nigam, published on 06 May 2002
| Filed in
You might also like...
JavaScript forum discussion
-
How to stop & start the scrolling text on mouseover & onmouseout event.
by codeunit (3 replies)
-
Header and Footer in Web page print
by fhajaj (4 replies)
-
Automatically check/uncheck multiple checkboxes
by gus (3 replies)
-
Re: HTML TABLE
by mikefenej (0 replies)
-
Re: HTML TABLE
by mikefenej (0 replies)
JavaScript podcasts
-
Herding Code: Herding Code 162: Whacha doin, Goodbye Google Reader, scriptcs and Lightning Round!
Published 7 years ago, running time 0h35m
This week on Herding Code, the guys talk about what they’ve been up to lately (including Kevin’s new Greater Than Parts site), lament the passing of Google Reader, talk about scriptcs, and even fit in a lightning round! Download / Listen: Herding Code 162: Whacha doin, Goodbye Google Reader, scri.
JavaScript jobs
-
UI Designer
TCS ( Tata Consultancy Services) in London, United Kingdom
£200-250 per year (Contract) -
Front End developer
DIA in London, Hammersmith, United Kingdom
£20,000-35,000 GBP per year -
PHP Developer
Storm Creative Media Limited in Leigh-on-Sea, United Kingdom
Negotiable -
Front end, UX & UI developer
Stratajet Ltd in London, United Kingdom
Negotiable, based on experience
Comments