国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 網(wǎng)站 > 建站經(jīng)驗(yàn) > 正文

移動(dòng)站點(diǎn)添加撥打電話、發(fā)送短信、郵件等功能HTML代碼

2024-08-30 19:08:15
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友

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)碼了

  1. <a href="callto:[phone_number]">phone_number</a>

復(fù)制代碼

例子:

  1. <a href="callto:12345678">12345678</a>

復(fù)制代碼

(2) Android的寫(xiě)法
[phone_number] 就是電話號(hào)碼了

  1. <a href="wtai://wp/mc;[phone_number]">phone_number</a>

復(fù)制代碼

例子:

  1. <a href="wtai://wp/mc;12345678">12345678</a>

復(fù)制代碼

在電話號(hào)碼前面可以加上 + (加號(hào))表示國(guó)際號(hào)碼。如:

  1. <a href="wtai://wp/mc;+12345678">+12345678</a>

復(fù)制代碼



2. 短信
如果是需要調(diào)用短信的接口,可以將鏈接寫(xiě)成下面的格式:sms:<phone_number>[,<phone-number>]*[?body=<message_body>]
例如:

  1. <a href="sms:12345678">給12345678發(fā)短信</a>

復(fù)制代碼

  1. <a href="sms:12345678?body=hello">給12345678發(fā)送內(nèi)容為"hello"的短信</a>

復(fù)制代碼

  1. <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ě)成:

  1. <a href="market://search?q=[query]">Android Market link</a>

復(fù)制代碼

其中<query>就是搜索的內(nèi)容,你應(yīng)用的名稱(chēng)例子:

  1. <a href="market://search?q=MyApp">MyApp</a>

復(fù)制代碼



4. Ovi Store
這是諾基亞Nokia的一個(gè)應(yīng)用市場(chǎng)。

  1. <a href="http://store.ovi.com/content/XXXXX">MyApp</a>

復(fù)制代碼

XXXX就是你的應(yīng)用的ID(application Id)。


5. Windows Marketplace
微軟的應(yīng)用市場(chǎng)

  1. <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)

  1. <a href="http://appworld.blackberry.com/webstore/content/XXXXX">MyApp</a>

復(fù)制代碼

鏈接中的XXXX就是應(yīng)用ID。下面這個(gè)是作者頁(yè)面的URL

  1. <a href="http://appworld.blackberry.com/webstore/vendor/XXXX">MyApp</a>

復(fù)制代碼

其中的XXXX是指作者的ID


7. 地圖定位GPS
<a href="geopoint:[經(jīng)度],[緯度]">我的位置</a>
例如:

  1. <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例子:

  1. <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 (視頻)
例子:

  1. <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ǔ)音)例子:

  1. <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
例子:

  1. <a href="skype:mySkypeId?chat">Skype</a>

復(fù)制代碼



9. Mail
郵件就和普通的html一樣使用mailto

  1. <a href="mailto:nobody@wordpress.com"></a>

復(fù)制代碼

  1. <a href="mailto:nobody@wordpress.com,no.one@wordpress.com"></a>

復(fù)制代碼

  1. <a href="mailto:nobody@wordpress.com?subject=Testing"></a>

復(fù)制代碼

  1. <a href="mailto:nobody@wordpress.com?subject=Testing mailto&cc=no.one@wrodpress.com"></a>

復(fù)制代碼

現(xiàn)在一般用在鏈接上加入<a href="tel:1233434334">

發(fā)表評(píng)論 共有條評(píng)論
用戶(hù)名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 文登市| 鄢陵县| 柳州市| 乐亭县| 林芝县| 张家川| 固镇县| 新丰县| 丰原市| 甘南县| 十堰市| 西华县| 弥渡县| 石渠县| 榆树市| 灵川县| 桃江县| 汨罗市| 通渭县| 凌海市| 朝阳市| 彭泽县| 蕉岭县| 贵港市| 讷河市| 黄梅县| 临桂县| 栾川县| 西华县| 临江市| 六安市| 新竹市| 闽侯县| 甘孜| 武鸣县| 武隆县| 枝江市| 灵台县| 林州市| 安达市| 九台市|