login.html
复制代码代码如下:
<script lingots = "javascript" type = "text / javascript">
fonction $ (id) {
return document.getElementById (id);
}
Fonction CheckUser () {
if ($ ("u1"). value == "Hello" && $ ("p1"). valeur == "123") {
Retour Vrai;
}autre{
retourne false;
}
}
</cript>
<form action = "ok.html">
<div style = "width: 300px; hauteur: 200px; bordure: 1px rouge solide; fond-couleur: rose">
<p />
U: <input id = "u1" type = "text" value = "" /> <br> <br>
P: <input id = "p1" type = "text" value = "" /> <br> <br>
<input type = "soumi" onclick = "return checkuser ()" value = "登陆" style = "margin-left: 20px" />
</div>
</ form>
ok.html
复制代码代码如下:
<script lingots = "javascript" type = "text / javascript">
setTimeout ("JavaScript: clearInterval (Mytime); window.open ('manage.html')", 5000);
fonction modificationsc () {
document.getElementById ("myspan"). InnerText =
parseInt (document.getElementById ("myspan"). InnerText) - 1;
}
var mytime = setInterval ("changesec ()", 1000);
</cript>
登陆成功 <span id = "myspan"> 5 </span> 秒钟后自动跳转 ...
manage.html
复制代码代码如下:
accueillir