我目前使用sharer php 方法在IE8 中实现分享按钮。问题是即使代码相同,但在 IE8 或其他浏览器中生成的链接却不同
代码是:
// Change the information in FaceBook share
function fbs_click() {
u=location.href;
t=document.title;
window.open("http://www.facebook.com/sharer.php?s=100&p[url]=" + u + "&p[images][0]=http://www.hkheadline.com/image/logo_140.gif&p[title]=" + t + "&p[summary]= share message",'sharer','toolbar=0,status=0,width=626,height=436');
return false;
}
IE 8 :
http://www.facebook.com/issue/20121220/page/69&p[images][0]=http://www.hkheadline.com/image/logo_140.gif&p[title]=FlipBook%20demo&p[summary]=share message
Chrome / Fx :
http://www.facebook.com/sharer/sharer.php?s=100&p%5Burl%5D=http%3A%2F%2F203.80.1.28%2FFlippingBook%2FDev%2FFrontend%2FflipV5.html%3Fissue%3D20121220&p%5Bimages%5D%5B0%5D=http%3A%2F%2Fwww.hkheadline.com%2Fimage%2Flogo_140.gif&p%5Btitle%5D=FlipBook+Demo&p%5Bsummary%5D=%E9%A0%AD%E6%A2%9D%E6%97%A5%E5%A0%B1%E5%88%86%E4%BA%AB&page=1
为什么不同的浏览器表现不同以及如何解决?谢谢