2014年5月26日 星期一

Lab 33 XML (2)

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 XML


Lab 34 Syndication with RSS 2.0


Lab 31 Making images accessible




lab 30

提供額外的導覽協助:https://www.youtube.com/ 
在鏈結上加入標題:https://chrome.google.com/webstore/category/apps?hl=zh-TW https://chrome.google.com/webstore/category/apps?hl=zh-TW
定義快速鍵:http://i-learning.cycu.edu.tw/ 先呈現妳的主要內容:http://mlb.mlb.com/home 
不要開出新視窗:https://tw.yahoo.com/:https://tw.yahoo.com/https://www.youtube.com/

Lab 29 Using PageRank

2014年4月28日 星期一

Lab 17 JavaScript

剪刀 石頭

Lab 20 Hand code a form






lab19

search:

Lab 15 九九乘法表

<html>
<body>

<button onclick="buildTable()">來按我吧!</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>

Lab18 change pictures

Pulpit rock
<img alt="Pulpit rock" border="0" src="http://4.blog.xuite.net/4/0/3/1/15236299/blog_369324/txt/24443066/11.jpg" height="228" onmouseout="src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2jbKxhT7uGrevugF4uowatqMoj2O41P-7ImpU_LRR-cmlKTDiXZoIDx5bfZwZoo4wRLhqnMggNrNYR0Ydp56CEr2CuudQk0bEUxGIrmOE_IMk4Bq2do8GLop8pj1XXNKA9sei5fAwH4VN/s1600/X+JAPAN.png'" onmouseover="src='http://4.blog.xuite.net/4/0/3/1/15236299/blog_369324/txt/24443066/11.jpg'" width="304" />

Lab 16 Change an image by moving the mouse

<!DOCTYPE html>

<html>
 <head>  
  <title>lab16</title>
  
  <script>
    
   function mOver(obj){
    obj.setAttribute("src","http://4.blog.xuite.net/4/0/3/1/15236299/blog_369324/txt/24443066/11.jpg");
    }
   function mOut(obj){
    obj.setAttribute("src","http://www.spirit-of-metal.com/les%20goupes/X/X%20Japan/pics/1.jpg");
   }
  </script>
 </head>

 <body>
 <img border="0" src="http://4.blog.xuite.net/4/0/3/1/15236299/blog_369324/txt/24443066/11.jpg" width="500" height="500" onmouseover="mOver(this)" onmouseout="mOut(this)"> 
 </body>
</html>
lab16

2014年3月17日 星期一

Lab 13 Regular expression in action II


<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{1,3}[.]\d{1,3}[.]\d{1,3}[.]\d{1,3}|\w+\.\w+(\.\\w{1,})*$/;
//  var passwordRegex = /^\d{1,3}[.]\d{1,3}[.]\d{1,3}[.]\d{1,3}$/;
//var passwordRegex = /^([12]?\d{1,2}[.]\d{1,3}[.]\d{1,3}[.]\d{1,3})|(\w{1,}[.]\w{1,}([.]\w{1,})*)$/;

  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 12 Regular expression in action





<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 Regular expression I 撰寫一個網頁能夠自動檢查輸入的字串是否為整數或小數(例如 12.34, -1.2, +0.02, .30)。

Lab 11 Regular Expression II 撰寫一個網頁能夠自動檢查輸入的字串是否為"整數或小數,逗號,整數或小數"格式(例如 24.9586,121.24114)



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

2014年3月10日 星期一

Lab 7 Using browsers for programming



Lab 8 Using browsers for programming II




Lab 9 使用Google Docs 下OX 棋


2014年3月3日 星期一

Lab 4:破解網路大學排名DIY

NTU
528,000+ 815,000
32664
429,000
266000
==389182

CCU
1,430,000+96,300=2393000
9859
23500
9530
==488484

CYCU
1,320,000 +64,300
5,033
16,500
11400
==283561.5

YZU
277,000+61,000 =338000
4208
14100
2210
==72150.5
公式表
依結果排名
中正>台大>中原>元智

Lab 6:Using Chrome

CYCU:

1.im13.jpg
2.foot_bg2.gif
3.foot_bg1.gif

youtube:

1.www.youtube.com
2.GET /api/stats/watchtime?cver=as3&state=playing&ei=eG8UU8rGNoz8lAXm9oGwDw&ldpj=-14&fs=0&len=32.8&st=4.094&el=embedded&ver=2&fexp=912304,938638,919007,916624,919514,937417,937416,913434,936910,936913,902907,3300017,3300113,3300134,3300137,3300161,3310366,3310633,3310649,3311999&cmt=14.203&autoplay=1&rtn=24&rti=14&idpj=-6&euri=http%3A%2F%2Fwww.youtube.com%2F&fmt=160&et=14.096&ns=yt&docid=r1W3cXrWg5s&rt=14.792&plid=AATzspHusicHVtjC&hl=en_US&cc=-&c=web&cpn=ZT9ggKWr9dAZ8ipt HTTP/1.1
Host: s.youtube.com
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.117 Safari/537.36
Accept: */*
X-Client-Data: CLG1yQEIkbbJAQimtskBCKm2yQEIwbbJAQiehsoBCKmIygEIuYjKAQj/ksoB
Referer: http://www.youtube.com/
Accept-Encoding: gzip,deflate,sdch
Accept-Language: zh-TW,zh;q=0.8,en-US;q=0.6,en;q=0.4
Cookie: VISITOR_INFO1_LIVE=yosLvIVhhZ8; YSC=avOa7PzNRmY; __utma=27069237.102991370.1393848119.1393848119.1393848119.1; __utmb=27069237.1.10.1393848119; __utmc=27069237; __utmz=27069237.1393848119.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); PREF=f1=50000000&fv=12.0.0&f5=30


3.POST /api/stats/atr?fmt=160&c=web&autoplay=1&euri=http%3A%2F%2Fwww.youtube.com%2F&cver=as3&docid=r1W3cXrWg5s&ei=eG8UU8rGNoz8lAXm9oGwDw&rt=5.125&len=32.8&ns=yt&plid=AATzspHusicHVtjC&el=embedded&ver=2&fs=0&cpn=ZT9ggKWr9dAZ8ipt&cmt=4.539&cc=-&hl=en_US HTTP/1.1
Host: s.youtube.com
Connection: keep-alive
Content-Length: 143
Origin: http://s.ytimg.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.117 Safari/537.36
Content-Type: application/x-www-form-urlencoded
Accept: */*
X-Client-Data: CLG1yQEIkbbJAQimtskBCKm2yQEIwbbJAQiehsoBCKmIygEIuYjKAQj/ksoB
Referer: http://s.ytimg.com/yts/swfbin/player-vflY7J9rk/watch_as3.swf
Accept-Encoding: gzip,deflate,sdch
Accept-Language: zh-TW,zh;q=0.8,en-US;q=0.6,en;q=0.4
Cookie: VISITOR_INFO1_LIVE=yosLvIVhhZ8; YSC=avOa7PzNRmY; __utma=27069237.102991370.1393848119.1393848119.1393848119.1; __utmb=27069237.1.10.1393848119; __utmc=27069237; __utmz=27069237.1393848119.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); PREF=f1=50000000&fv=12.0.0&f5=30


udacity


1.www.udacity.com
2.wudacity.min.js?4353f3facd4c92187fd07d419bddaca6
3..min.js?4353f3facd4c92187fd07d419bddaca6