form with help


<html>
<head>
<title>dynamic style</title>
<script type="text/javascript" >
var helpers=["your name must be in the form:first name middle initial last name",
"your email address must have the form:user domine",
"your user ID must have atleast 6 charecters",
"your password must have atlest 6 characters and it must include one digit",
"this box provides advice on filling out the form on this page, put the mouse cursor over any input field to get advice"];
function message(advicenumber)
{
document.getElementById("advicebox").value=helpers[advicenumber];
}
</script>
</head>
<body>
<form action="">
<p>
Name:<input type="text" onmouseover="message(0)" onmouseout="message(4)"/>
<br/>
email:<input type="text"onmouseover="message(1)"onmouseout="message(4)"/>
<br/><br/>
to create an account provide the following:<br/>
UserID:<input type="text"onmouseover="message(2)"onmouseout="message(4)"/>
<br/>
password:<input type="password"onmouseover="message(3)"onmouseout="message(4)"/>
<br/>
<textarea id="advicebox" rows="3" cols="40"></textarea>
</body>
</html>

No comments:

My Favorite Books

  • C and Data Structures by Ashok N. kamthane
  • Web Technologies by A. A. Puntambekar
  • Learn HTML and CSS with W3Schools
  • Learn JavaScript and Ajax with W3Schools
  • HTML5 Black Book: Covers Css3, Javascript,XML, XHTML, Ajax, PHP And Jquery
  • HTML5 Application Development Fundamentals: MTA Exam 98-375
  • .NET 4.0 Programming 6-In-1, Black Book
  • SQL Server 2008 R2 Black Book
  • Asp.net 4.0 Projects Covers: net 3.5 And .net 4.0 Codes, Black Book
  • UNIX Shell Programming 1 Edition by Yashavant Kanetkar
  • UNIX and Shell Programming 1 Edition by Richard F. Gilberg, Behrouz A. Forouzan
  • Computer Networks by Andrew S. Tanenbaum
  • Multiple Choice questions in computer science by Timothy J Williams