移动端页面一键拨号、发送短信等功能

1.一键拨号:

<a href="tel:18511178920">拨打18511178920</a>


2.移动web页面自动探测电话号码:

<meta name="format-detection" content="telephone=yes">

3.使用wtai协议进行拨打电话:
<a href="wtai://wp//mc;18511178920">拨打守望者</a> 

<a href="wtai://wp/ap;18511178920;">将守望者存储至电话簿 </a>

        在电话号码前加上 + (加号)表示国际号码,比如:

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

4.短信:

        如果是需要调用短信的接口,可以将链接写成下面的格式: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>

5.Android Market:

        如果希望一个链接能够激活Android市场的功能,可以把链接写成:

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

        其中<query>就是搜索的内容,你应用的名称例子:

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

6.Ovi Store诺基亚Nokia的一个应用市场

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

        XXXX就是你的应用的ID(application Id)。

7.Windows Marketplace:微软的应用市场

<a href="http://marketplace.windowsphone.com/details.aspx?appId=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx">MyApp</a>

        其中 xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 只的就是应用的ID

8.地图定位GPS:

<a href="geopoint:[经度],[纬度]">我的位置</a>
        例如:

<a href="geopoint:100,23">我的位置</a>

9.邮件:

        邮件就和普通的html一样使用mailto:

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

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

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

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



转载至: http://www.w3cfuns.com/article-5599630-1-1.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值