2012年4月30日 星期一

Lab21 HTML

點選  Introduction to HTML 存下 其中的程式碼
將程式碼貼上記事本
記事本的檔名存成 myfile.html
在修改其程式碼
點開 檔案後 即可看見修改成果
點選   http://www.w3schools.com/html/tryit.asp?filename=tryhtml_basic 修改其程式碼
再點 Edit and Check Me  即可看見修改成果


依照上面的方式 再做一次
1

2

3

4

5








Lab20 Google Accessibility

圖中的橘色箭頭代表 盲人系統的快捷鍵  點選即可進入該網頁
圖中的黑色箭頭代表 盲人系統的快捷鍵  點選即可翻到下一頁


Lab19 AccessBar

安裝 AccessBar
找出有盲人系統的政府網站
http://www.cwb.gov.tw/V7/index.htm 中央氣象局
http://www.cbc.gov.tw/mp1.html  中央銀行
http://www.nhi.gov.tw/ 中央健保局





2012年4月23日 星期一

Lab18 Clean Language

1.用右鍵點選  Clean Language 並且按另存新檔

2. 用記事本打開 此檔案            3.再將 ,'***' 加入JavaScript 


  
// ==UserScript==
// @name          Clean Language
// @namespace     http://arantius.com/misc/greasemonkey/
// @description      Keep bad words off of the web.  Edit the array badwords to control which words are removed from pages and replaced with ***.
// @require     http://arantius.com/misc/greasemonkey/imports/content-scope-runner.user.js
// ==/UserScript==

//
// Originally written by Anthony Lieuallen of http://arantius.com/
// Licensed for unlimited modification and redistribution as long as
// this notice is kept intact.
//
// If possible, please contact me regarding new features, bugfixes
// or changes that I could integrate into the existing code instead of
// creating a different script.  Thank you
//

(function() {
//edit the words here but ...
var badwords=['cawk','123','chink','clits','cock','cum','cunt','dago','daygo','dego','dick','dildo','fag','fcuk','feces','feg','foreskin','fu','fuk','fux0r','gay','gook','h0r','h4x0r','hoer','hoer','honkey','hore','kawk','kike','kuk','kuksuger','lesbian','lesbo','masturbat','motherfucker','nigga','nigger','penis','phuck','piss','pr0n','prick','pusse','pussy','vagina','queef','queer','qweef','scrotum','sh!t','shemale','shiz','slut','smut','spic','teets','testicles','tits','titties','titty','twat','twaty','wank','whoar','whore','wtf','bitch','bastard','damn','shit','fuck','ass','asshole','jackass'];

//do not touch anything below here
var bw="\\b("+badwords.join("|")+")\\b";
bw=new RegExp(bw, "gi");

var els = document.evaluate('//*', document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
var el,i=0;
while (el=els.snapshotItem(i++)) {
    //don't mess with these tags
    if ('SCRIPT'==el.tagName) continue;
    if ('STYLE'==el.tagName) continue;

    for (var j=0; j<el.childNodes.length; j++) {
        if ('#text'==el.childNodes[j].nodeName) {
            el.childNodes[j].textContent=el.childNodes[j].textContent.replace(bw, '***');
        }
    }
}
document.title=document.title.replace(bw, '***');
})
();



4.將檔案丟入 火狐 瀏覽器 搜尋 *** 

2012年3月26日 星期一

Lab17 Greasemonkey





此製作方式及文章來自於 中原大學的耀仁教授的部落格網站
  1. Please read the information about Greasemonkey and cookiebefore you start the lab.
  2. Install Greasemonkey 0.9.1. Check the lower right corner of your Firefox and you should find a monkey at the right.
  3. Cookie Monster - Show cookie contents: Shows the contents of the current page cookie. Just mouse over the "Cookie" text on the bottom left. Check what cookies http://www.nytimes.com writes to you. Does our class blog use cookie or not? Does Google use cookie?
  4. You can turn off Greasemonkey by clicking on the monkey face at the URL bar of Firefox. Click again to activate Greasemonkey.


Lab16 Using Google PageRank

安裝PageRank 之後,點選 檢視→工具列→SEOToolbar
就可以在瀏覽頁面上找到 紅框中的PageRank數值
 紐約時報 http://www.nytimes.com 
PageRank數值9





















CNN http://www.cnn.com/
PageRank數值8











 台灣雅虎 http://tw.yahoo.com
 PageRank數值8











蕃薯藤 http://www.yam.com
PageRank數值7











 PCHome 購物 http://shopping.pchome.com.tw/
 PageRank數值5