標籤:wordpress xxxxx 例子 通過 word number 國際 bst class
特殊的連結:打電話,簡訊,email;iPhone 和Android應用
下面的這篇文章主要是說,網頁中的連結如何寫,可以啟用電話的功能。
例如,頁面中展示的是一個電話號碼,當使用者在手機瀏覽器裡面點擊這個電話號碼的時候,手機會彈出撥號的面板,或者是簡訊程式會啟動等。
1. 打電話
在android的瀏覽器中,如果電話號碼是 XXX-XXX-XXXX的型式的話,使用者點擊的時候,撥號面板會啟用,但是如果不是這一特定的格式,那麼撥號功能是不會啟動的。其實可以通過連結的方式啟用撥號面板。
(1) IPhone的寫法
<a href="callto:[phone_number]">phone_number</a>
<a href="callto:12345678">12345678</a>
(2) Android的寫法
<a href="wtai://wp/mc;[phone_number]">phone_number</a>
<a href="wtai://wp/mc;12345678">12345678</a>
在電話號碼前面可以加上 + (加號)表示國際號碼。如:
<a href="wtai://wp/mc;+12345678">+12345678</a>
2. 簡訊
如果是需要調用簡訊的介面,可以將連結寫成下面的格式:
sms:<phone_number>[,<phone-number>]*[?body=<message_body>]
例如:
<a href="sms:12345678">給 12345678 發簡訊</a> <a href="sms:12345678?body=hello">給 12345678 發送內容為"hello"的簡訊</a> <a href="sms:12345678,98765432?body=hello">給12345678和98765432 發送內容為"hello"的簡訊</a>
3. Android Market
如果希望一個連結能夠啟用Android市場的功能,可以把連結寫成:
<a href="market://search?q=[query]">Android Market link</a>
其中<query>就是搜尋的內容,你應用的名稱
例子:
<a href="market://search?q=MyApp">MyApp</a>
4. Ovi Store
這是諾基亞Nokia的一個應用市場。
<a href="http://store.ovi.com/content/XXXXX">MyApp</a>
XXXX就是你的應用的ID(application Id)。
5. Windows Marketplace
微軟的應用市場
<a href="http://marketplace.windowsphone.com/details.aspx?appId=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx">MyApp</a>
其中 xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 只的就是應用的ID
6. BlackBerry App World
黑莓的應用市場
<a href="http://appworld.blackberry.com/webstore/content/XXXXX">MyApp</a>
連結中的XXXX就是應用ID。下面這個是作者頁面的URL
<a href="http://appworld.blackberry.com/webstore/vendor/XXXX">MyApp</a>
其中的XXXX是指作者的ID
7. 地圖定位GPS
<a href="geopoint:[經度],[緯度]">我的位置</a>
例如:
<a href="geopoint:100,23">我的位置</a>
8. 聊天工具
(1) Yahoo Messager
<a href="ymsgr:[動作]?[使用者名稱]&m=[訊息]">Yahoo Messager</a>
[動作]有:addfriend, sendIM, call
例子:
<a href="ymsgr:[email protected]">給[email protected]發訊息</a>
(2) Windows Messager (MSN)
<a href="msnim:[動作]?contact=[使用者名稱]">Windows Messager</a>
[動作]有:chat (聊天), add (添加成連絡人), voice (語音), video (視頻)
例子:
<a href="msnim:[email protected]">MSN</a>
(3) Google Talk (GTalk)
<a href="gtalk:[動作]?jid=[使用者名稱]&from_jid=[自己的使用者名稱]">GTalk</a>
[動作]有:chat (聊天),call (語音)
例子:
<a href="gtalk:[email protected]&[email protected]">GTalk</a>
(4) Skype
<a href="skype:[使用者名稱]?[動作]">Skype</a>
[動作]有:chat, add, userinfo, voicemain
例子:
<a href="skype:mySkypeId?chat">Skype</a>
9. Mail 郵件
就和普通的html一樣使用mailto
<a href="mailto:[email protected]"></a> <a href="mailto:[email protected],[email protected]"></a> <a href="mailto:[email protected]?subject=Testing"></a> <a href="mailto:[email protected]?subject=Testing mailto&[email protected]"></a>
特殊的連結:打電話,簡訊,email;iPhone 和Android應用