2014年5月26日 星期一

lab34


lab33

Results of Group A

Results of Group A

Brazil versus Scotland

Played on 10-Jun-1998
Result: Brazil2 , Scotland1

Morocco versus Norway

Played on 10-Jun-1998
Result: Morocco2 , Norway2

Scotland versus Norway

Played on 16-Jun-1998
Result: Scotland1 , Norway1

Brazil versus Morocco

Played on 16-Jun-1998
Result: Brazil3 , Morocco0

Brazil versus Norway

Played on 23-Jun-1998
Result: Brazil1 , Norway2

Scotland versus Morocco

Played on 23-Jun-1998
Result: Scotland0 , Morocco3

lab32


2014年4月28日 星期一

lab20

Before you do this lab, you must understand what is CGI(Common Gateway Interface) and Form.
 1. So please search the answer and post your opinion in your blog.
2. Hand code a HTML to edit an HTML so that the webpage can send a request to Google like http://maps.google.com/maps?q=24.9586,+121.24114 Use Form CGI that includes action, input, and submit. Try a few different coordinates. 3. If the input is not in the format of coordinates, display an error and ask the user to retry. For example, an incorrect input may look like 12.a2,21.22 Lab 20

lab19

find:

lab18

Pulpit rock

2014年4月14日 星期一

lab17

第1張



第2張



第3張

lab16

!DOCTYPE html> lab16

lab15

2014年4月7日 星期一

lab14

<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"> <input type="button" id= "sexy baby" onclick="build()" value="sexy baby" /> <script> function build() { myImg = document.createElement("IMG") myImg.setAttribute("id","imageOne") myImg.setAttribute("src","https://scontent-b-hkg.xx.fbcdn.net/hphotos-prn2/t1.0-9/165418_277489942387700_732609952_n.jpg") docBody= document.getElementsByTagName("box").item(0) docBody.appendChild(myImg) } </script> <box> <br> <box>

2014年3月17日 星期一

lab13

<html> <head> </head> <body id="body"> <form action="javascript:void(0);" id="exampleForm"> <input id="examplePass" type="text" /> <input type="submit" /> </form> <script> document.getElementById("exampleForm").onsubmit = function(){ var passwordRegex =/^((?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))*$/; 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("exampleForm"); body.appendChild(notify); } } }; </script>

lab12

<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 = "error" notify.id = "notify"; var body = document.getElementById("body"); body.appendChild(notify); } } }; </script> </html> 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個字元長,必須包含一個數字和一個英文字母寬 "
     notify.id = "notify";
   
     var body = document.getElementById("body");
     body.appendChild(notify);
 </html>
   }
  }
 };
      </script>

lab9


lab7



2014年3月3日 星期一

CYCU:   1.newsbox.jsp
               2.runinfo.jsp 
               3.cse.js?cx=006671915706355032179:lepk4kd-ype

Youtube: 1.cb=gapi.loaded_0
               2.photo.jpg
               3.cb=gapi.loaded_1

Udacity:  1.fonts.css
              2.udacity.min.js?4353f3facd4c92187fd07d419bgddaca6
              3.seg?add=789705&t=2

Lab4

WR=0.2×Rank(S)+0.5×Rank(V)+0.15×Rank(R)+0.15×Rank(Sc)
中原cycu
 (3,200,000+224,000)*0.2+5033*0.5+112,000*0.15+11,500*0.15=705041.5
中正ccu
( 6,830,000+225,000)*0.2+9858*0.5+239,000*0.15+18,500*0.15=1453554
台大ntu
 (61,400,000+840,000)*0.2+32664*0.5 +1890000*0.15+62700*0.15=1705237
元智yzu
 ( 4,910,000+183,000)*0.2+4208*0.5+127,000*0.15+ 5,840*0.15=1065630
所以    台大>中正>元智>中原