2013年10月28日 星期一

Lab 18

<html>
<head>
</head>
<body id="body">
<form action="https://maps.google.com/"  name="q" method="get" id="exampleForm" onsubmit="return check()">
search:<input type="text" id="examplePass" name="q" >
<input type="submit" value="submit">
<br>
</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");
return false;
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 17

<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 16

<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+)?$/;
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>

2013年10月21日 星期一

Lab 15

<html>
<head>
</head>
<body id="body">
<form action="https://maps.google.com/"  name="q" method="get" id="exampleform">
search:<input type="text" name="q" id="examplePass">
<input type="submit" value="submit">
<br>
</form>
</body>
</html>


Lab 14

1.
<html>
<head>
</head>
<body id="body">
<form action="http://www.google.com.tw/search" id="exampleForm" name="q" method="get">
<input type="text" name="q" id="examplePass" />
<input type="submit" />
</form>
</body>

2.<html>
<head>
</head>
<body>
<form action="http://www.google.com.tw/search"  name="q" method="post">
search:<input type="text" name="q">
<input type="submit" value="submit">
<br>
</form>
</body>
</html>



Lab 13

<html>
<body>

<img onmouseover="this.src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJZj6Kp_iPNEVB58Ppb45-xkH9sc3XlpPPaF-bGcBQyr-aMaiXidZ8EqVob76tV93L4YspRKOaheBB33ytJa3DIeViJLp2eq98frp5qX8Cbq-xqToA-ax8pCshXPn60GmmDIS_k4p1II8/s320/DSC_1795.JPG'" onmouseout="this.src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj78aVAdTEK9cDKbPHhtAAp5m8Tu1kLUPNs4Pb0hxoNwxXgROU8UkiNLFYpF61_LtQ6mwQfkpPclFqZ1d82T1UepzHGo2BPMBdZs4nWBHMuhUGbD1oA_S5qWDK7vnx1MCUszNB2quZKG25T/s320/DSC_1772.JPG'" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJZj6Kp_iPNEVB58Ppb45-xkH9sc3XlpPPaF-bGcBQyr-aMaiXidZ8EqVob76tV93L4YspRKOaheBB33ytJa3DIeViJLp2eq98frp5qX8Cbq-xqToA-ax8pCshXPn60GmmDIS_k4p1II8/s320/DSC_1795.JPG"</img>



</body>
</html>


HW 10-14

1
2
3
http://3205.tw.tranews.com/Show/images/Column/13609_2.jpg 3205.tw.tranews.com

2013年10月14日 星期一

Lab 12


<html>
<body>

<img onmouseover="build(this)" onmouseout="buil(this)" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJZj6Kp_iPNEVB58Ppb45-xkH9sc3XlpPPaF-bGcBQyr-aMaiXidZ8EqVob76tV93L4YspRKOaheBB33ytJa3DIeViJLp2eq98frp5qX8Cbq-xqToA-ax8pCshXPn60GmmDIS_k4p1II8/s320/DSC_1795.JPG"</img>

<script>
function build(myImg)
{

myImg.setAttribute("src","https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJZj6Kp_iPNEVB58Ppb45-xkH9sc3XlpPPaF-bGcBQyr-aMaiXidZ8EqVob76tV93L4YspRKOaheBB33ytJa3DIeViJLp2eq98frp5qX8Cbq-xqToA-ax8pCshXPn60GmmDIS_k4p1II8/s320/DSC_1795.JPG")

}
function buil(myImg)
{

myImg.setAttribute("src","https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj78aVAdTEK9cDKbPHhtAAp5m8Tu1kLUPNs4Pb0hxoNwxXgROU8UkiNLFYpF61_LtQ6mwQfkpPclFqZ1d82T1UepzHGo2BPMBdZs4nWBHMuhUGbD1oA_S5qWDK7vnx1MCUszNB2quZKG25T/s320/DSC_1772.JPG")

}
</script>

</body>
</html>

Lab 11


Lab 10


2013年10月7日 星期一

Lab 8


Lab 8


Lab 9

與吳岱衛

Lab 7


HW 9-30-2013

1.Write a 200 word summary about his speech.
以前的電腦有許多格式,不能互通,而演變到今有許多豐富的功能。但會發生我們從網路上得不到我們想要的資料,有大量的資料是非常重要的,但如何運用這些大量的資料,做有效的連結。而產生出新的觀念"Linked Data(關聯資料)"Tim Berners-Lee 20年前發明了網際網路, 讓人們可以互相傳遞資訊。Tim Berners-Lee還引用了漢斯的話:大量的數據很重要。後來有了超連結,透過超連結,人們可以在搜尋資料時,找到更多關聯的資料,他希望能把所有資料都串在一起,讓大家更能夠搜尋到資料。
2. Google 的創業動機是什麼?

     一開始有許多瀏覽器,只是結構都不夠健全不夠完整,Google創辦人Larry PageSergey Brin始初在學校開始一項關於"搜尋"的研究專案。兩人開發一個能對網站之間的關聯做精確分析的搜尋引擎。


3. Facebook的創立動機是什麼?

 Facebook,是一個在線社群網路服務網站,它的名字源於口語化,最初的目的是給予一些美國的大學新鮮人們在一學年的開始註冊的時候,能相互認識。目的是認識到女生,卻用擴大人際網路這個藉口招攬同學加入。

4. WWW的發明動機是什麼?


     全球資訊網(亦作「Web」、「WWW」、「'W3'」,英文全稱為「World Wide Web」),是一個由許多互相連結的超文字組成的系統,透過網際網路存取。WWW發明者Time Berners-Lee在歐洲核子物理實驗室(CERN)工作時提出hyperlink的概念,當出建立的目標只是為量子實驗室的電腦使用者,提供一個多媒體資料庫讓每一個使用者透過超文件存取共通資訊的簡易方法。於是他創造了全球資訊網,並寫了世界上第一個網頁瀏覽器(WorldWideWeb)和第一個網頁伺服器(httpd)


5. 為什麼 Lab 4 的各校檔案數,能見度,檔案數,論文數,加權總和用來計算排名的方法是錯的?


     針對搜尋引擎查詢結果的分析,網頁資料的雜訊相當高,變動也很快。因此,利用網路資料來排名有其先天上的缺點,較細微的排名結果可信度較差,爭議性也會比較高。任何排名指標都應該透明到可重複驗證,網路資訊因為太方便,人們都容易取得,所以資料很容易會有變動,誤差值相對就會增高,網頁數量也會不穩定。