日期:2014-05-16 浏览次数:20501 次
<html> <head> <script language="javascript" > function checkSubmit(){ if ($('username').value=="maoge"&&$("password").value=="baqi"){ return true; }else{ return false; $("username").value=""; $("password").value=""; } } function $(id){ return document.getElementById(id); } </script> </head> <body> <form action="demo7_1.html" > 用户名<input type="text" id="username"/><br/> 密  码<input type="text" id="password"/><br/>       <input type="submit" value="登陆" onclick="return checkSubmit();"/> </body> </html> <html> <head> <title>good web</title> <script language="javascript"> function Jump(){ clearInterval("mytime"); window.open("http://www.baidu.com/index.php?tn=sogouie_dg"); } setTimeout("tiao()",5000); function changeSec(){ $("myspan").innerText=parseInt($("myspan").innerText)-1; } var mytime=setInterval("changeSec()",1000); function $(id){ return document.getElementById(id); } </script> </head> <body> <span id="myspan">5</span> </body> </html> <html> <head> </head> <body> good luck </body> </html>