最新留言
Loading...
最新留言
Loading...
2014年6月16日 星期一
2014年6月9日 星期一
lab12
<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>
<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>
lab19
<html>
<body>
<form name="find" action="http://google.com/search" method="get">
find:<input type="text" name="q" value=""><br>
<input type="submit" value="search">
</body>
</html>
<body>
<form name="find" action="http://google.com/search" method="get">
find:<input type="text" name="q" value=""><br>
<input type="submit" value="search">
</body>
</html>
lab18
<img border="0" src="http://www.google.com.tw/imgres?imgurl=http://upload.wikimedia.org/wikipedia/zh/2/22/%25E8%259C%2598%25E8%259B%259B%25E4%25BA%25BA2.jpg&imgrefurl=http://zh.wikipedia.org/wiki/%25E8%259C%2598%25E8%259B%259B%25E4%25BA%25BA2&h=267&w=189&tbnid=Ur-NOVibOla8SM:&zoom=1&tbnh=186&tbnw=131&usg=__VyasXC4u0I8XinqvFmBQlkmcVzo=&docid=qO2KgAtB18z_4M&itg=1&sa=X&ei=YK6VU8f5FMGIkQXhhICYDQ&ved=0CJ4BEPwdMA0" height="228" onmouseout="src='http://www.google.com.tw/imgres?imgurl=http://upload.wikimedia.org/wikipedia/zh/2/22/%25E8%259C%2598%25E8%259B%259B%25E4%25BA%25BA2.jpg&imgrefurl=http://zh.wikipedia.org/wiki/%25E8%259C%2598%25E8%259B%259B%25E4%25BA%25BA2&h=267&w=189&tbnid=Ur-NOVibOla8SM:&zoom=1&tbnh=186&tbnw=131&usg=__VyasXC4u0I8XinqvFmBQlkmcVzo=&docid=qO2KgAtB18z_4M&itg=1&sa=X&ei=YK6VU8f5FMGIkQXhhICYDQ&ved=0CJ4BEPwdMA0'" onmouseover="src='http://www.google.com.tw/imgres?imgurl=http://upload.wikimedia.org/wikipedia/zh/2/22/%25E8%259C%2598%25E8%259B%259B%25E4%25BA%25BA2.jpg&imgrefurl=http://zh.wikipedia.org/wiki/%25E8%259C%2598%25E8%259B%259B%25E4%25BA%25BA2&h=267&w=189&tbnid=Ur-NOVibOla8SM:&zoom=1&tbnh=186&tbnw=131&usg=__VyasXC4u0I8XinqvFmBQlkmcVzo=&docid=qO2KgAtB18z_4M&itg=1&sa=X&ei=YK6VU8f5FMGIkQXhhICYDQ&ved=0CJ4BEPwdMA0'" width="304" alt="This is a picture, it will change itself when you point it by your mouse." />
2014年5月26日 星期一
lab33
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