Best books about Javasript
|
JavaScript Tying Effect
See
the following
Javascript typing effect in the text area.
How
to do it?
You need the following Javascript to get typing effect in web page.
<script
language=javascript>
<!--
var i = 0;
var showString= "This is a computer typing script, the words
in this test will appear "
+ "one letter after another. Ain't this cool? Download it for your own website!! "
+ "Get more easy to use yet powerful and useful JavaScripts at my website.
You will be "
+ "transfered in a few seconds.";
function marquee()
{
var stringLength= showString.length;
document.show.marquee1.value= document.show.marquee1.value + showString.charAt(i);
i++;
var timeID= setTimeout("marquee()",70);
if (i >= stringLength)
{clearTimeout(timeID); i=0; location.href="http://www.geocities.com/SiliconValley/Network/7432";}
}
//-->
</script> |
Then add the following code to where you want it
to be:
<form name="show">
<textarea rows=6 cols=57 wrap="virtual" name="marquee1"></textarea>
</form>
|
add onload="marquee()" to <body> tag.
|