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



2014年5月19日 星期一

lab 31


lab 30

http://www.szqh.gov.cn/fzgj/wzall/201403/t20140313_33664.shtml
顯示放大與縮小
http://www.webguide.nat.gov.tw/wSite/ct?xItem=36833&ctNode=14473&mp=1
提供表格摘要
http://www.iware.com.tw/keywords_view-id-345.html
針對色盲者的網站
http://www.youtube.com/?gl=TW&hl=zh-TW
擁有額外導覽協助
http://www.study-area.org/coobila/tutorial_275.html
不需開出新視窗

lab 29



2014年4月28日 星期一

lab 20
















<html>
<body>

<form name="f" action="http://maps.google.com/" method="get" onsubmit="return check()">
Search: <input type="text" name="q" value=""><br>
<input type="submit" value="Search">
</form>
<script>
function check(){
var floatReg=/^([+-]?)[1-9]\d*(\.\d*)?,([+-]?)[1-9]\d*(\.\d*)?$/;
if(!floatReg.test(f.q.value)){
alert("please try it again");
f.q.value="";
document.f.q.focus();
return false;
}
}
</script>

</body>
</html>

lab 19

找東西:

lab 18

2014年4月15日 星期二

lab 16

lab 15

<html> <body> <button onclick="buildTable()">Try it</button> <script> function buildTable(){ docBody = document.getElementsByTagName("body").item(0) myTable = document.createElement("TABLE") myTable.id ="TableOne" myTable.border = 1 myTableBody = document.createElement("TBODY") for (i = 1; i <=9; i++){ row = document.createElement("TR") for (j = 1; j <=9; j++){ cell = document.createElement("TD") cell.setAttribute("WIDTH","50") cell.setAttribute("HEIGHT","50") textVal = i + "*" + j+"="+i*j textNode = document.createTextNode(textVal) cell.appendChild(textNode) row.appendChild(cell) } myTableBody.appendChild(row) } myTable.appendChild(myTableBody) docBody.appendChild(myTable) } </script> </head> <body> </body> </html>

2014年3月3日 星期一

lab4

一.size                                                            score
1.中原(1320000+79500)                                 279900
2.元智(1030000+61000)                                 218200 
3.台大(31500000+528000)                            6405600 
4.中正(1430000+91500)                                 304300 


二.visibility
1.中原5033                                                  2516.5
2.元智4208                                                 2104
3.台大32664                                               16332
4.中正9858                                                  4929
 
三.rich files
1.中原16300                                                2430
2.元智12700                                                2800
3.台大429000                                               85400
4.中正29300                                                5900
  
四.google scholar
1.中原11400                                                 1710           
2.元智2210                                                  330.5
3.台大266000                                               39900
4.中正9530                                                   1429.5



加總
中原     286556.5
元智     283435.5
台大     6547232
中正     316558.5

LAB 6

一.www.cycu.edu.tw(中原大學)前3名:
1.newsbox.jsp
2.runinfo.jsp  
3.cse.js?cx=006671915706355032179:lepk4kd-ype

二.https://www.youtube.com/?gl=TW&hl=zh-TW(youtube)前3名:
1.www.youtube.com2photo.jpg3.cb=gapi.loaded_1
三.www.udacity.com前3名:
1.fonts.css
2.udacity.min.js?4353f3facd4c92187fd07d419bgddaca6
3.seg?add=789705&t=2fonts.cssudacity.min.js?4353f3facd4c92187fd07d419bgddaca6seg?add=789705&t=2