PDA

View Full Version : Editing button code


00XxXxX00
02-15-2003, 11:31 PM
The following is a password protected page code, and I am wondering. Right now, it is a button link, is it possible to make it a text link? If you can, please help.
<SCRIPT>
function passWord() {
var testV = 1;
var pass1 = prompt('Playstation Gamer Password:',' ');
while (testV < 3) {
if (!pass1)
history.go(-1);
if (pass1.toLowerCase() == "nunyabiz")
window.open('gameruser');
break;
}
testV+=1;
var pass1 =
prompt('Access Denied,'Password');
}
if (pass1.toLowerCase()!="password" & testV ==3)
history.go(-1);
return " ";
}
</SCRIPT>
<CENTER>
<FORM>
<input type="button" value="Members Only" onClick="passWord()">
</FORM>
</CENTER>

Towards the bottom there is the button code, could you change it to a text link? http://www.geocities.com/playstation_gamer2003 is my site, and I want to have the link blend in with the rest. Thanks all.

l3vi
02-16-2003, 12:05 AM
Its actually really easy. All you Do is type in <a href="javascript:passWord();">Members only</a>