|
-
Mar 15th, 2007, 11:13 PM
#1
Thread Starter
Member
how to ensure that the Typewrite message DO NOT appear in textbox?
i want this text: "The best way to learn, is to study examples. -www.W3Schools.com" NOT TO appear in a textbox. but i dunno how to do it. i want the text to appear as label form. i have tried to use <label> tag, but to no avail. the textr will appear in a browser but there will be no effect on the text.
can someone show me??
this are the codes that i am currently using. i get the codes from w3schools.
<html>
<head>
<script type="text/javascript">
message="The best way to learn, is to study examples. -www.W3Schools.com"
pos=0
maxlength=message.length+1
function writemsg()
{
if (pos<maxlength)
{
txt=message.substring(pos,0)
document.forms[0].msgfield.value=txt
pos++
timer=setTimeout("writemsg()", 50)
}
}
function stoptimer()
{
clearTimeout(timer)
}
</script>
</head>
<body onload="writemsg()" onunload="stoptimer()">
<form>
<input id="msgfield" size="65">
</form>
</body>
</html>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|