2014年5月19日 星期一

lab 31


lab 30

定義快速鍵 : https://www.cycu.edu.tw/

指定妳的語言:http://zh.wikipedia.org/wiki/%E8%89%BE%E5%80%AB%C2%B7%E8%89%BE%E4%BD%9B%E6%A3%AE

先呈現妳的主要內容:http://www.nba.com/

不要開出新視窗:https://www.google.com.tw/

在鏈結上加入標題:https://www.apple.com/tw/itunes/features/

lab29









2014年4月14日 星期一

lab 17

第1張



第2張



第3張

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月17日 星期一

lab13

lab12



lab11

lab10

2014年3月10日 星期一

lab8

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

 document.getElementById("exampleForm").onsubmit = function() {
      //R


   var passwordRegex = /^[\D]+[\W_]+[A-Za-z\d]{6,}$/;



   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 = "需大於6個位元,至少要有1個英文字母一個非英文字母."
     notify.id = "notify";
 
     var body = document.getElementById("body");
     body.appendChild(notify);
   }
  }
 };
      </script>
 </html>


lab7

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

 document.getElementById("exampleForm").onsubmit = function(){
 var passwordRegex = /^[A-Za-z\d]{6,8}$/;
 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 = "Passwords need to be between 6 and 8 charcters long and consist of uppercase characters,lowercase charcters, and digits only"
   notify.id="notify";
 
   var body = document.getElementById("body");
   body.appendChild(notify);
  }
 }
};

 </script>
</html>



lab9


2014年3月3日 星期一

lab4

中原
(1)網頁規模 1290000
(2)能見度 1109 
(3)教學檔案 16400
(4)學術文件 11300

元智
(1)網頁規模 276000
(2)能見度 5
(3)教學檔案 14100
(4)學術文件 2210

台大
(1)網頁規模 817000
(2)能見度 39 
(3)教學檔案 429000
(4)學術文件 269000

中正
(1)網頁規模 1420000
(2)能見度 9
(3)教學檔案 24500
(4)學術文件 9630

lab5