View Single Post
Old 02-09-2007, 11:29 AM   PM User | #4
neomaximus2k
Regular Coder

 
Join Date: Jan 2007
Posts: 213
Thanks: 0
Thanked 0 Times in 0 Posts
neomaximus2k is an unknown quantity at this point
ok in that case do something like this....

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<script type="text/javascript" language="javascript">
	function changefield(){
		document.getElementById("passwordbox").innerHTML = "<input id=\"password-field\" type=\"password\" name=\"password-field\" title=\"Password\" tabindex=\"2\" />";
		document.getElementById("password-field".focus();
	}
</script>
</head>

<body>
<div id="passwordbox">
<input id="password-field" type="text" name="password-field" title="Password" onfocus="changefield();" value="Password" tabindex="2" />
</div>
<input type="submit" name="submit" value="sign in" tabindex="3" />

</body>
</html>
I noticed that you had a different ID for each field when compared to the Name, its best to keep them the same.

also what is this part for?
passit(this.form[0]);
__________________
Matthew Bagley
Paramiliar Design Studios
Website Design | Website Development | Search Engine Optimisation (SEO)
neomaximus2k is offline   Reply With Quote