The majority of forums are now only available as archives, which means posting/editing is disabled.
The Anything and Everything forum is still open.
Time: 2013-05-22, 02:04am
Please
login or
register to post a reply.
Subject: I think it was done with java, but... · Posted: 2003-04-08, 07:28am
Rank: ? (3)
Member #: 3874
I saw this site once that had a text area-like box that typed text into the box on it's own, one letter at a time. It would just type away, and it started as soon as the page loaded. Does anyone know what I am talking about? If so, do you know how to do it?
Subject: javascript can do it · Posted: 2003-04-08, 07:59am
Rank: ? (4827)
Member #: 3416
if i understand you correctly, you can use javascript to do it. the only thing i don't know is how to make it go slow, but here's some code:
Code:
<form name="theform">
<input name="typing" />
</form>
that will give you a text box named typing inside a form named theform.
you would then want to make a javascript function and put it in the head:
Code:
function typethetext() {
textstring = "this is the text it will type";
var i;
for (i = 0; i < textstring.length; i++) {
document.theform.typing.value = textstring.substring(0, i + 1);
//code to make it delay before adding the next character
}
}
then just call the function from somewhere in the body:
Code:
<script type="text/javascript"><!--
typethetext();
//--></script>
hope that helps! i have a javascript that changes the values of form fields on
this page of
my site .
my mind is like a steel trap! it only hangs on to the big stuff. visit my forums at track7.org
Forum Quick Jump - Free2Code - Anything and Everything - Suggestions (Archived) - Challenges & Awards (Archived) - Chat (Archived) - Community Projects (Archived) - Bugs (Archived) - Programming Languages - PHP (Archived) - C/C++ (Archived) - Visual Basic (Archived) - Other (Archived) - Java (Archived) - Assembler (Archived) - Perl (Archived) - Python (Archived) - Programming - 3D Graphics (Archived) - Database design and management (Archived) - Physics (Archived) - Encryption and compression (Archived) - Networking (Archived) - Operating Systems (Archived) - Web Development - Graphics (Archived) - Web Design (Archived) - HTML/CSS (Archived) - Website Help/Review (Archived) - Flash (Archived) - Computing & Operating Systems - Hardware/Electronics (Archived) - Security (Archived) - Linux/UNIX (Archived) - Microsoft Windows (Archived) - Apple Mac (Archived) - Other OSs (Archived) - General Computing - Life/Other - Religion (Archived) - Politics/World Events (Archived) - Debate (Archived) - Arts & Entertainment - Books++ (Archived) - Music (Archived) - Movies (Archived) - Humor (Archived) - Games (Archived) - Sports (Archived) - Arts (Archived) - Archives - Tutorial Request (Archived) - Old Bugs 2 (Archived) - Free2Host Hosting (Archived) - Ada (Archived) - Functional Languages (Archived) - Career (Archived) - Old Bugs (Archived)
Pages: 1
Please
login or
register to post a reply.