T客邦
T客邦 - 全站文章 
Want free Kindle ebooks?

Sign up to receive the best freebie Kindle ebook deals in your email every day.
From our sponsors
在那瞬間的細節:觸碰與點擊的不同,300 毫秒時間差
Oct 26th 2013, 05:33, by Desiring Clicks

61d053383f02d32095da83761f477bb9 對於行動上網人口節節高升的趨勢,許多網站也推出了行動版網站,或是利用 Responsive Web Design (自適應網頁設計)來增進網站在行動裝置上的體驗。但如何有效區別觸碰(touch)與點擊(click)的不同之處呢?

在 2013 年的今天,網頁開發者利用 CSS media query 在不同尺寸來達到不同的排版已經是基本工,但是關於『自適應網頁設計』還有更多的細節等著設計師與開發者去改善,例如利用 Lettering.js 讓字體大小也能隨著裝置大小而變動,或是利用 Retina.js 讓高像素密度(ppi)較高的行動裝置,可以欣賞到高解析度的圖片。

300 毫秒時間差

這次要提到的是網頁在行動裝置上觸碰(touch)與點擊(click)的不同之處,在 W3C 草案中 touch 共有 touchstart、touchend、touchmove、touchcancel,在 Goolge IO 2013 中 Mobile HTML : The Future of Your Sites 這個議程中,從 22 分 10 秒的地方開始,有針對 touchstart、touchend、touchmove 這三個事件做了一個 Demo,同時也演示了 touchstart 與 click 事件(event)之間有 300 毫秒(ms)的差異。

300 毫秒的時間差,看起來很短,但是卻會讓使用者一直處在『到底按到了沒有』的疑問之中。因為在行動裝置中,我們不僅有點擊(click)的事件,我們還有點擊兩下(double click)放大、捲動(scroll)等指令,300 毫秒延遲的設定係為了偵測其他事件而存在的。

▲一個往下捲動的動作,裡面也包含了觸碰事件。

▲在Google IO的演示當中,touchend有60毫秒、click有300毫秒的時間差。

要知道這 300 毫秒的影響有多大,我們直接拿起手機,進入台灣最多人設為首頁的 Yahoo 奇摩 行動版網站。在瀏覽網站時,因為在點擊超連結時也需要等待一個有點久的時間,所以使用者不容易發現 300 毫秒的時間差,不過今天如果是一個選單按鈕呢?

我們點擊左上角選單按鈕,感受一下選單打開變成右邊的樣子。嗯~似乎感受到有些延遲,雖然有沒辦法慢慢去挖出程式碼去證明這個按鈕是點擊事件,不過應該八九不離十了。不過並不是 Yahoo 裡面所有按鈕都是點擊事件,我們點擊新聞分類,切換到該頁面去。

再點擊一次左上角選單按鈕,咦~是不是感覺變快了,這是因為該按鈕的事件應該是用 touchend 的事件去做觸發,我們來做個小實驗,我們像下圖一樣手指的起點從選單按鈕開始,然後再螢幕上亂畫一通,最後再其他地方放開,選單一樣會打開,這個行為就可以確定是使用了 touchend 事件。使用 touch 事件在行動裝置上是不是有更好的體驗了呢!

點擊下去的那瞬間的細節

避免 300 毫秒的時間差,並沒有解決所有的問題,在以往的網頁設計上,我們可能只會去處理到 hover 的效果,不過在觸控裝置上,hover 的效果卻沒有辦法好好發揮,我們需要借助 touchstart 事件來做出點擊的效果。在 Firefox style guide 也訂出按鈕需要有 閒置(idle)、下壓(press)、關閉(disabled)幾種狀態。

在先前 Yahoo 的案例裡,雖然有 300 毫秒的延遲,但是我們卻沒有『到底有沒有點到』的窘境,仔細觀察一下,就會發現在點擊選單按鈕時,在 touchstart 事件時皆有不同的效果,因此我們才會知道,原來我們有點擊到,然後再感受到跳出選單的時間有延遲。

▲Yahoo行動版網站中,選單按鈕都有點擊瞬間的視覺效果。

自適應網頁實作

不過當網頁裡面使用觸碰事件時,用滑鼠點擊想當然是沒有效果,但是如果把觸碰與點擊事件同時用上時,在行動裝置上又會造成重複的點擊。在這邊可以利用 Modernizr 在網頁中載入 modernizr.js,當網頁開啟後開啟瀏覽器的開發者工具,我們發現在 html 標籤裡,增加了好多個 class 其中 no-touch,就表示這個裝置不支援觸碰,如果支援觸碰就有 touch 這個 class。

▲ html 標籤中有 no-touch 這個 class 表示該裝置不支援觸控。

▲ html 標籤中有 touch 這個 class 表示該裝置支援觸控。

這樣一來我們就可以容易的判斷裝置是否支援觸碰,在利用 javascript 去控制該用點擊還是觸碰事件了喔。

參考文獻

[1] Mozilla Style Guide.

[2] Images via Camilo, cc license.

本文獲Desiring Clicks授權轉載,原文連結在此

Desiring Clicks裡面包含了行為心理學、視覺心理學、認知心理學、認知神經學、介面設計、資訊架構學、使用性分析與設計等等不同領域的知識。介紹人機互動的領域,藉由表達人與電腦之間的關係,讓我們能更進一步的設計更容易使用、更貼近人性、甚至是更智慧化的電腦設備。

Desiring Clicks官網粉絲團

Facebook 馬上按讚 加入T客邦粉絲團

標籤:技術研究, 生活

更多3C新消息,快來加入T客邦粉絲團

This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers. Five Filters recommends:

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

gyyij7s6y6fly 發表在 痞客邦 留言(0) 人氣()

批踢踢實業坊 Tainan 板
 
Want free Kindle ebooks?

Sign up to receive the best freebie Kindle ebook deals in your email every day.
From our sponsors
[交易] 送女生衣物
Oct 26th 2013, 12:02, by ophelia123

作者ophelia123 (斐莉亞)

看板Tainan

標題[交易] 送女生衣物

時間Sat Oct 26 12:02:45 2013

交易類別:送 交易物品/金額: http://ppt.cc/pZtN 除了小可愛和雪紡裙和碎花連身裙"以外"的衣物 另外還有一些上衣、連身裙、小背心等等 有些是F size 所以可能要C罩杯以下的女孩>發文前請詳閱並遵守板規 交易文:三天限一篇 + 不可重覆PO + 限定台南 1.面交地點請填區名或明顯地標,只填台南表示台南市內37個區皆可面交唷! 2.票券類及收集類請推置底文 3.交易完成可在標題或內文附註,但勿更改[交易]主標題 請注意台南板主要為分享討論性質看板,開放二手物交易為附屬,請勿濫用[交易]。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 1.173.105.230 ※ 編輯: ophelia123 來自: 1.173.105.230 (10/26 12:06)

This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers. Five Filters recommends:

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

gyyij7s6y6fly 發表在 痞客邦 留言(0) 人氣()

NOWnews 今日新聞總覽
Latest news from www.nownews.com 
Eventbrite makes it happen

Create an event and sell tickets online through Eventbrite. It's simple! Sign up and get started today.
From our sponsors
thumbnail 出席新移民表揚大會 總統:鼓勵新移民媽媽教母語
Oct 26th 2013, 07:54, by service.nownews@gmail.com (nownews)

2013年10月26日 15:54

"); $(".story_photo .videoPlay").hover ( function(){$(this).css({"opacity":"0"})}, function(){$(this).css({"opacity":"1"})} ) } //照片區塊出現 $(".story_photo").fadeIn(1000); //寫入第一張照片 var firstimg = $(".story_photo img:first").attr("rel"); $(".story_photo img:first").attr("src",firstimg); $(".story_photo li:not(:first)").hide(); //判斷是否有多張照片,寫入開關 var li_nums = $(".story_photo li").length; var openclose = ' 更多照片 ' if (li_nums > 1) { $(".story_photo .p_switcher").append(openclose); } //控制錨點 if (li_nums > 1) { $('.open_btn, .story_photo img').click(function(){ $('.news_story').ScrollTo(500); }); $('.close_btn, .story_photo img').click(function(){ $('.news_story').ScrollTo(500); }); } else { $(".story_photo img").css("cursor","none").attr("title","");//一張圖時 $(".p_switcher").hide(); } //點擊圖片或開關,展開其他圖片 $("a.open_close").click(function(){ //寫入其他圖片路徑 $(".story_photo img:not(:first)").each(function(){ var imgsrc = $(this).attr("rel"); $(this).attr("src",imgsrc); }); $(".story_photo li:not(:first)").slideToggle(500); $(".open_close span").toggle(); }); if (video_link>0){ // 如果有影音,點圖連到影音頁 $(".story_photo img, .story_photo .videoPlay").css("cursor","pointer").attr("title","點擊觀看影音新聞");//設定游標 $(".story_photo img, .story_photo .videoPlay").click(function(){ var videoURL = $(".story_photo .video_link a").attr("href"); location.href=videoURL; }); } else { //沒影音時,點圖展開其它圖 if (li_nums > 1) {//一張圖以上 $(".story_photo img").css("cursor","pointer").attr("title","點擊展開");//設定游標 } $(".story_photo img").click(function(){ //寫入其他圖片路徑 $(".story_photo img:not(:first)").each(function(){ var imgsrc = $(this).attr("rel"); $(this).attr("src",imgsrc); }); $(".story_photo li:not(:first)").slideToggle(500); $(".open_close span").toggle(); }); } //------------------- });
  • 當我們同在一起 總統馬英九(左3)26日到台北劍潭出席「2013全國新移民家庭楷模暨婦女楷模表揚大會」,與新移民家庭小朋友一起高歌「當我們同在一起」。中央社記者王飛華攝 102年10月26日

政治中心/綜合報導

總統馬英九今(26)日出席2013全國新移民「家庭楷模」暨「婦女楷模」表揚大會,分別用4種語言向在場新移民問候。總統鼓勵新移民的媽媽在家裡教小孩講母語,未來小孩如能運用母語跟媽媽的母社會來往,變成未來很重要的資產。

馬總統說,他看到有這麼多新移民到台灣來,是天上掉下來的,讓大家有機會認識更多越南、泰國、柬埔寨、緬甸、印尼的朋友,非常難得。

他鼓勵新移民的媽媽們,在家裡一定要教小孩講母語,國語教學工作交給老師。

馬總統說,把小孩的母語教好,這樣小孩不但學會了本地的國語,也同時能夠運用母語,並且跟媽媽的母社會來往,「這個變成他未來很重要的一個資源、資產」;多學一種語言,就多開一扇窗戶。

他說,目前10個國中小學生當中,有1名就是來自新移民的家庭。到了2030年之後,全台灣25歲青年當中,有13%來自新移民的家庭,「孩子會講印尼話、越南話、泰國話、柬埔寨話,將來都是他的一項資產,千萬不要認為這是一個麻煩」。

東南亞的潛力無窮,馬總統說,台灣應該多培養這方面的人才,重視與東南亞的關係,這也是國家重要的政策,「不是政府喊幾句『南向政策』就會這樣,必須扎實去研究、誠懇與東南亞民眾交往」。

此外,馬總統也透露,今年已有超過1100位新移民加入國民黨,代表新移民認為國民黨願意照顧新移民,誠懇跟新移民交朋友,這很重要,也希望這成為台灣的特色。

關鍵字: 馬英九 新移民 印尼 越南 泰國

This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers. Five Filters recommends:

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

gyyij7s6y6fly 發表在 痞客邦 留言(0) 人氣()

2013 - Yahoo奇摩 搜尋結果
2013 - Yahoo奇摩 搜尋結果 
Thousands of Free eBooks

BookBub brings you free & bargain national bestselling eBooks in the genres of your choice! Sign up now & join 1.5 million happy readers.
From our sponsors
妖魔遊行 鬼新娘血淋淋踩街
Oct 26th 2013, 08:47
字級:

16:11:57

(中央社記者黃旭昇新北市26日電)新北市萬聖節變裝踩街,今天在板橋商圈舉行,市長朱立倫親自帶隊發糖果,各方妖魔鬼怪、經典電影及卡通人物也一齊亮相。

參加踩街以及萬聖變裝爭霸賽的妖魔,下午在新北市警局騎警隊打頭陣下,機車隊帶領各方競賽隊伍朝市民廣場前進遊行。

萬聖變裝爭霸賽的「淒厲人」隊伍,有鬼新娘以及迎親隊伍,攝影師、廚師血淋淋踩街,透過變色眼鏡片、樹脂化妝術,驚悚的畫面,成為路人圍觀鏡頭焦點。

參加競賽的也有外國人裝扮成吸血鬼,板橋區中山國小校長王健旺親自帶隊,裝扮成骷顱頭鬼怪,板橋國小足球社結合血淋淋裝扮,以及鼓隊樂音,聲色俱佳引起矚目。

今年是第3屆萬聖節變裝踩街,朱立倫發放糖果,並與民眾一起踩街遊行。他致詞時表示,期待透過嘉年華會活動,帶起板橋商圈的繁榮。

新北市經濟發展局說,今年「2013新北市商圈嘉年華」帶動整體商圈營業額成長2成,目前登錄發票累積金額已達新台幣18億元。踩街嘉年華活動,結合萬聖節和商圈,有變裝踩街遊行、商圈特色商品、變裝晚會,及登錄發票抽獎。1021026

This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers. Five Filters recommends:

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

gyyij7s6y6fly 發表在 痞客邦 留言(0) 人氣()

批踢踢實業坊 ask 板
 
Want free Kindle ebooks?

Sign up to receive the best freebie Kindle ebook deals in your email every day.
From our sponsors
[請問] 零用錢..
Oct 25th 2013, 17:32, by searchmark

作者searchmark (mark)

看板ask

標題[請問] 零用錢..

時間Fri Oct 25 17:32:01 2013

請問一下 一個高中生每天的零用錢40元會太少嗎?假如是早晚餐吃家裡 然後午餐 是吃學校的便當 每天40元 有時跟同學出去玩 會太少嗎? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 36.232.224.93

diebytoo:我高中一個禮拜才100元 其餘開銷跟妳一樣 覺得很夠用 10/25 17:35

robrob99:如果不包括交通費 午餐費 40很夠用的 10/25 17:35

force5566:我高中一個禮拜600,包含早餐 晚餐 交通,午餐訂學校 10/25 17:39

This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers. Five Filters recommends:

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

gyyij7s6y6fly 發表在 痞客邦 留言(0) 人氣()

<<蘋果日報>>即時新聞-最新
>即時新聞-最新 
Join Delanceyplace

Sign up to receive a free quote from a non fiction book every weekday.
From our sponsors
洪曉蕾 跑趴大小眼
Oct 26th 2013, 06:00

【陳玥礽/綜合報導】名模洪曉蕾昨晚盛裝出席東西全球文創集團執行長李冠毅(Kevin)43歲生日派對,她挽起頭髮,身穿白色長洋裝,造型看來貴氣優雅。不過她在微博po出與壽星合照,卻被眼尖網友發現「左右眼超不對稱」,還驚呼「蕾蕾臉部到底怎麼了啊?」
 
想看更多有趣的娛樂八卦,請上「蘋果娛樂新聞」粉絲團https://www.facebook.com/AppleEnews

洪曉蕾(右)和李冠毅拍照,表情看來僵硬。翻攝網路

This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers. Five Filters recommends:

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

gyyij7s6y6fly 發表在 痞客邦 留言(0) 人氣()

<<蘋果日報>>即時新聞-最新
>即時新聞-最新 
Join Delanceyplace

Sign up to receive a free quote from a non fiction book every weekday.
From our sponsors
【短片】看電影愛上槍 男子改造手槍販售
Oct 26th 2013, 05:59

【楊適群、吳世龍╱高雄報導】1名高職時期曾學過車床技術的劉姓男子(24歲),畢業後到車床工廠當學徒,因喜歡電視電影中常出現的「金牛座」手槍,今年1月起在台南永康工業區租賃廠房,以周邊工廠噪音為掩蓋,獨自1人以車床工具將鐵塊切削出仿造巴西金牛座國際槍械公司所生產JP-915的手槍槍管、滑套和撞針等零件。
 
劉男從網路上找尋收藏玩家,主動聯繫兜售,貨源多流向台中玩具手槍店。高市刑大接獲檢舉,在周4前往永康抓人,當場起獲大批槍枝零件和切削工具。劉嫌表示:「一般改造槍枝市價要6萬,但我做的滑套、撞針、槍管等零件1組只要1萬5」,劉還透露已賣出約3、40萬元零件,警方訊後依《槍砲彈藥刀械管制條例》移送,並追查零件流向以釐清是否有買家已組合成槍。

高市刑警大隊破獲槍械工廠,發現嫌犯專門仿製金牛座手槍的零件為主。吳世龍攝

高市刑警大隊破獲槍械工廠,查扣槍械零件等證物外,還發現嫌犯用來學習CNC車床的書籍。吳世龍攝

高市刑警大隊破獲槍械工廠,查扣搶管、滑套、彈匣半成品及成品等證物。吳世龍攝

This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers. Five Filters recommends:

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

gyyij7s6y6fly 發表在 痞客邦 留言(0) 人氣()

<<蘋果日報>>即時新聞-最熱
>即時新聞-最熱 
Eventbrite makes it happen

Create an event and sell tickets online through Eventbrite. It's simple! Sign up and get started today.
From our sponsors
【金鐘星光】太保手比V拼奪獎
Oct 25th 2013, 10:50

【李彥初/綜合報導】第48屆電視金鐘獎星光大道正在舉行,以《公視學生劇展—最好的一件事》入圍迷你劇集男主角獎項的太保,一身帥氣黑西裝豋場,面對鏡頭比出勝利「V」字手勢,期待今晚會有好收穫。
 
想看更多有趣的娛樂八卦,請上「蘋果娛樂新聞」粉絲團https://www.facebook.com/AppleEnews

太保帥氣登紅毯。娛樂中心攝

This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers. Five Filters recommends:

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

gyyij7s6y6fly 發表在 痞客邦 留言(0) 人氣()

批踢踢實業坊 Windows 板
 
Explore Cafepress

Name anything in the world, and we'll show you hundreds of products that celebrate it. Or, you can design your own.
From our sponsors
[問題] 升級8.1後IE不能用
Oct 26th 2013, 14:17, by cgm12

作者cgm12 (monkey)

站內Windows

標題[問題] 升級8.1後IE不能用

時間Sat Oct 26 14:17:50 2013

各位大大 小弟我升級8.1後(我是筆電) 打開IE想要蒐尋 可是IE都不能執行此功能 但看奇摩新聞都可以 不知道怎麼辦 可以協助嗎 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 111.246.34.23

This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers. Five Filters recommends:

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

gyyij7s6y6fly 發表在 痞客邦 留言(0) 人氣()

批踢踢實業坊 Food 板
 
Learn to Play the Ukulele

Make your own music in your own way on the ukulele and have fun doing it. This online course is taught by "Cool Hand Uke." Sign up today for just $25.
From our sponsors
[請益] 台中哪有好吃的螃蟹
Oct 26th 2013, 07:28, by cloudwen

作者cloudwen (剎那芳華)

站內Food

標題[請益] 台中哪有好吃的螃蟹

時間Sat Oct 26 07:28:44 2013

1.想找的餐飲類別 (必填) 例:中(粵、臺、川、京等等)、西(義、法、美等等)、日、下午茶、簡餐... 可自行發揮,但請盡可能縮小範圍(例如港式飲茶、麻辣火鍋),請勿超過2類。 螃蟹料理 2.用餐地區 (必填) 路段、區域、特定的生活圈或商圈,請盡可能詳細填寫,縮小範圍。 (請勿直接填寫台灣、台北市、台中市等等,皆屬範圍過大。 較難找到的餐飲種類或特殊需求除外,一般餐廳發問範圍過大皆予以刪除。) 台中市內皆可 3.每人預算 每人1500左右 5.用餐人數 (選填) 2~3人 6. 查詢精華區及板面文章後拿不定主意的候選店家 (必填) 候選店家未填者,板主將逕行刪除發問。 除非精華區內與板面上『完全沒有』任何相關資料, 否則請至少從精華區挑選2~5家餐廳。 (同類型至少需有2家,總數不可超過5家,超過者直接予以刪除)。 告知板友為何覺得難以抉擇,再請熱心板友幫忙評比。 【注意】請填「屬意的候選店家」,勿填「已排除」或「不考慮」的店家。 告訴板友您「需要的」是什麼,比「不需要什麼」更重要。 精華區內沒推薦哪有好吃的螃蟹, 有單點的餐廳可以介紹的嗎 吃到飽的如有不錯的也可以 希望有多種螃蟹可以選擇而不是只有帝王蟹 請有口袋名單的大大幫個忙吧 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 180.176.160.78

This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers. Five Filters recommends:

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

gyyij7s6y6fly 發表在 痞客邦 留言(0) 人氣()