2014年6月16日 星期一

lab 38



lab 39

電子系的新戲往可以幫助一些同學多認識電子系
但希望可以趕快更新一下系網的照片
照片有點舊了

lab 37



lab11


<html>
 <head>
 </head>
 <body id="body">
  <form action="javascript:void(0);" id="exampleForm">
   <input type="text" id="examplePass" />
   <input type="submit" />
  </form>
 </body>
 <script>

 document.getElementById("exampleForm").onsubmit =function() {
  var passwordRegex = /^[+-]?\d+[.]?\d*[,][+-]?\d+[.]?\d*$/;

  if(!passwordRegex.test(document.getElementById("examplePass").value)){
  console.log("Regex didn't match");
   var notify = document.getElementById("notify");
   if (notify === null){
   notify = document.createElement("p");
   notify.textContent = " ERROR ";
   notify.id = "notify";
   
   var body = document.getElementById("body");
   body.appendChild(notify);
   }
  }
 };

  </script>
</html>

lab 10

lab 12

<html>
<title>lab12</title>
<body>
<form action="http://maps.google.com/maps" method="get" name="f" onsubmit="return check()">
<input name="q" type="text"  /><br />
<input name="send" type="submit" value="search" />
</form>
</body>
<script>


 document.getElementById("exampleForm").onsubmit =function() {
  var passwordRegex = /^[-|+]*[\d]*[.|\d][\d]*[,][-|+]*[\d]*[.|\d][\d]*$/;

  if(!passwordRegex.test(document.getElementById("examplePass").value)){
  console.log("Regex didn't match");
   var notify = document.getElementById("notify");
   if (notify === null){
   notify = document.createElement("p");
   notify.textContent = "你不是正確的"
   notify.id = "notify";
  
   var body = document.getElementById("body");
   body.appendChild(notify);
   }
  }
 };

  </script>
</html>lab12

lab 24