一些网络api接口,希望大家能完善补充

1. 客户端查询所在国家、地区、城市、经纬度、ip的接口:(来自QQ和一个科技公司 )

<script type="text/javascript" src="http://fw.qq.com/ipaddress" charset="gbk"></script>
<script type="text/javascript" src="http://j.maxmind.com/app/geoip.js"></script>

2.百度输入法接口:详细http://ime.baidu.com/online.html

<script type="text/javascript" src="http://www.baidu.com/olime/bdime_open.js"></script>

3.百度搜索框提示接口:详细http://www.baidu.com/search/sug/sugcode.html

<script charset="gbk" src="http://www.baidu.com/js/opensug.js"></script>
<script type="text/javascript">
function 回调函数名(){要执行的代码,即点击选项(onchange)后执行的}
var params = {
"fontColor":"#FF0000",
"fontColorHI":"#EEEE00",
"fontSize":"14px",
"fontFamily":"宋体",
"borderColor":"#A57E51",
"bgcolorHI":"#0000DD",
"sugSubmit":false
};
BaiduSuggestion.bind("你inupt的ID",params,回调函数名());
</script>

4.百度地图接口:详细http://dev.baidu.com/wiki/map

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>百度地图的Hello, World</title>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=1.2"></script>
</head>
<body>
<div style="width:520px;height:340px;border:1px solid gray" id="container"></div>
</body>
</html>
<script type="text/javascript">
var map = new BMap.Map("container");            // 创建Map实例
var point = new BMap.Point(116.404, 39.915);    // 创建点坐标
map.centerAndZoom(point,15);                     // 初始化地图,设置中心点坐标和地图级别。
</script>


 6. 谷歌翻译接口:详细http://code.google.com/intl/zh-CN/more/

    <script type="text/javascript" src="http://www.google.com/jsapi"></script>


 7. 谷歌地图接口:详细http://code.google.com/intl/zh-CN/more/

<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>


 8. 新浪个人微博展示:

<iframe width="100%" height="550" class="share_self"  frameborder="0" scrolling="no" src="http://widget.weibo.com/weiboshow/index.php?language=&width=0&height=550&fansRow=1&ptype=1&speed=100&skin=-1&isTitle=0&noborder=0&isWeibo=1&isFans=1&uid=2296823150&verifier=e10a4b17&colors=d6f3f7,666666,FFFF00,CCCCCC,3417fa"></iframe>


 9. 新浪微博分享:

<script type="text/javascript" charset="utf-8">
(function(){
  var _w = 90 , _h = 24;
  var param = {
    url:location.href,
    type:'2',
    count:'1', 
    appkey:'1446565232', 
    title:'',
    pic:'', 
    ralateUid:'2296823150', 
    rnd:new Date().valueOf()
  }
  var temp = [];
  for( var p in param ){
    temp.push(p + '=' + encodeURIComponent( param[p] || '' ) )
  }
  document.write('<center>    <iframe allowTransparency="true" frameborder="0" scrolling="no" src="http://hits.sinajs.cn/A1/weiboshare.html?' + temp.join('&') + '" width="'+ _w+'" height="'+_h+'"></iframe></center>')
})();
</script>


 10. 分享条接口:详细,http://www.sharebar.cn/

<script type="text/javascript" src="http://s.sharebar.cn/js/sharebar_float.js#color=2&align=right&move=0" charset="utf-8"></script>
标签: 无
返回文章列表 文章二维码
本页链接的二维码
打赏二维码
添加新评论