/    Sign up×
Community /Pin to ProfileBookmark

Help with editing a script

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=”Enter” onClick=”password()”>
</p></FORM>
<p>&nbsp;</p></CENTER>
</body>
</html>

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @BRG spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...