1. 打電話
在android的瀏覽器中,如果電話號(hào)碼是 XXX-XXX-XXXX的型式的話,用戶(hù)點(diǎn)擊的時(shí)候,撥號(hào)面板會(huì)激活,但是如果不是這一特定的格式,那么撥號(hào)功能是不會(huì)啟動(dòng)的。其實(shí)可以通過(guò)鏈接的方式激活撥號(hào)面板。
(1) IPhone的寫(xiě)法
[phone_number] 就是電話號(hào)碼了
<a href="callto:[phone_number]">phone_number</a>
復(fù)制代碼
例子:
<a href="callto:12345678">12345678</a>
復(fù)制代碼
(2) Android的寫(xiě)法
[phone_number] 就是電話號(hào)碼了
<a href="wtai://wp/mc;[phone_number]">phone_number</a>
復(fù)制代碼
例子:
<a href="wtai://wp/mc;12345678">12345678</a>
復(fù)制代碼
在電話號(hào)碼前面可以加上 + (加號(hào))表示國(guó)際號(hào)碼。如:
<a href="wtai://wp/mc;+12345678">+12345678</a>
復(fù)制代碼
2. 短信
如果是需要調(diào)用短信的接口,可以將鏈接寫(xiě)成下面的格式:sms:<phone_number>[,<phone-number>]*[?body=<message_body>]
例如:
<a href="sms:12345678">給12345678發(fā)短信</a>
復(fù)制代碼
<a href="sms:12345678?body=hello">給12345678發(fā)送內(nèi)容為"hello"的短信</a>
復(fù)制代碼
<a href="sms:12345678,98765432?body=hello">給12345678和98765432發(fā)送內(nèi)容為"hello"的短信</a>
復(fù)制代碼
3. Android Market
如果希望一個(gè)鏈接能夠激活A(yù)ndroid市場(chǎng)的功能,可以把鏈接寫(xiě)成:
<a href="market://search?q=[query]">Android Market link</a>
復(fù)制代碼
其中<query>就是搜索的內(nèi)容,你應(yīng)用的名稱(chēng)例子:
<a href="market://search?q=MyApp">MyApp</a>
復(fù)制代碼
4. Ovi Store
這是諾基亞Nokia的一個(gè)應(yīng)用市場(chǎng)。
<a href="http://store.ovi.com/content/XXXXX">MyApp</a>
復(fù)制代碼
XXXX就是你的應(yīng)用的ID(application Id)。
5. Windows Marketplace
微軟的應(yīng)用市場(chǎng)
<a href="http://marketplace.windowsphone.com/details.aspx?appId=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx">MyApp</a>
復(fù)制代碼
其中 xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 只的就是應(yīng)用的ID
6. BlackBerry App World
黑莓的應(yīng)用市場(chǎng)
<a href="http://appworld.blackberry.com/webstore/content/XXXXX">MyApp</a>
復(fù)制代碼
鏈接中的XXXX就是應(yīng)用ID。下面這個(gè)是作者頁(yè)面的URL
<a href="http://appworld.blackberry.com/webstore/vendor/XXXX">MyApp</a>
復(fù)制代碼
其中的XXXX是指作者的ID
7. 地圖定位GPS
<a href="geopoint:[經(jīng)度],[緯度]">我的位置</a>
例如:
<a href="geopoint:100,23">我的位置</a>
復(fù)制代碼
8. 聊天工具
(1) Yahoo Messager
<a href="ymsgr:[動(dòng)作]?[用戶(hù)名]&m=[消息]">Yahoo Messager</a>
[動(dòng)作]有:addfriend, sendIM, call例子:
<a href="ymsgr:sendIM?my.account@yahoo.com">給my.account@yahoo.com發(fā)消息</a>
復(fù)制代碼
(2) Windows Messager (MSN)
<a href="msnim:[動(dòng)作]?contact=[用戶(hù)名]">Windows Messager</a>
[動(dòng)作]有:chat (聊天), add (添加成聯(lián)系人), voice (語(yǔ)音), video (視頻)
例子:
<a href="msnim:chat?contact=my.account@hotmail.com">MSN</a>
復(fù)制代碼
(3) Google Talk (GTalk)
<a href="gtalk:[動(dòng)作]?jid=[用戶(hù)名]&from_jid=[自己的用戶(hù)名]">GTalk</a>
[動(dòng)作]有:chat (聊天),call (語(yǔ)音)例子:
<a href="gtalk:chat?jid=your@gmail.com&from_jid=my@gmail.com">GTalk</a>
復(fù)制代碼
(4) Skype
<a href="skype:[用戶(hù)名]?[動(dòng)作]">Skype</a>
[動(dòng)作]有:chat, add, userinfo, voicemain
例子:
<a href="skype:mySkypeId?chat">Skype</a>
復(fù)制代碼
9. Mail
郵件就和普通的html一樣使用mailto
<a href="mailto:nobody@wordpress.com"></a>
復(fù)制代碼
<a href="mailto:nobody@wordpress.com,no.one@wordpress.com"></a>
復(fù)制代碼
<a href="mailto:nobody@wordpress.com?subject=Testing"></a>
復(fù)制代碼
<a href="mailto:nobody@wordpress.com?subject=Testing mailto&cc=no.one@wrodpress.com"></a>
復(fù)制代碼
現(xiàn)在一般用在鏈接上加入<a href="tel:1233434334">
新聞熱點(diǎn)
疑難解答