Help with editing a script

wxdqz

New Member
I am making a site in Dreamweaver that uses a password prompt. I have a page with a button that says enter. You click the button, and you will be prompted for a password. I want to change the button to a premade Flash button called "Blue Warper", which is already provided in Dreamweaver. I would also like to change the font in the button and the prompt window. How do I do it?
Here is my script:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT LANGUAGE="JavaScript">
function password() {
var testV = 1;
var pass1 = prompt('Enter Your Password','');
while (testV < 3) {
if (!pass1)
history.go(-1);
if (pass1 == "*********") {
alert('I love you...');
window.open('New Book.htm');
break;
}
testV+=1;
var pass1 =
prompt('Access Denied','Password');
}
if (pass1!="" & testV ==3)
history.go(-1);
return " ";
}
</SCRIPT>
</head>
<body background="Images/stars.jpg">
<CENTER>
<FORM>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><input type="button" value=http://www.webdeveloper.com/forum/archive/index.php/"Enter" onClick="password()">
</p></FORM>
<p>&nbsp;</p></CENTER>
</body>
</html>
 
Back
Top