全景漫游如何分享到微博,人人,QQ上
全景漫游的分享主要通过javascript代码实现,通过给组件添加一个执行脚本的动作,在脚本中(js代码)添加一定的代码达到分享的目的。具体的代码如下:
新浪微博:window.open("http://v.t.sina.com.cn/share/share.php?url="+encodeURIComponent(location.href));
腾讯微博:window.open("http://share.v.t.qq.com/index.php?c=share&a=index&url="+encodeURIComponent(location.href));
QQ空间:window.open('http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url='+encodeURIComponent(document.location.href));
人人网:window.open("http://share.renren.com/share/buttonshare.do?link="+encodeURIComponent(location.href));