as shown in the picture, jump to open the interface to share with your QQ friends. It works fine under 360JI IEMAG Firefox, but it is blank under the latest chrome browser.
Test Code:
< script >
var oDiv = document.getElementById("open")
open()
function open() {
var p = {
url:"http://wwww.baidu.com", /*URLQQ*/
desc:"d",
title:"t", /*()*/
summary:"", /*()*/
pics:"", /*()*/
flash: "", /*()*/
site:"http://wwww.baidu.com", /*() :QQ*/
style:"203",
width:16,
height:16
};
var s = [];
for(var i in p){
s.push(i + "=" + encodeURIComponent(p[i]||""));
}
var paramStr = s.join("&")
var qhref = "http://connect.qq.com/widget/shareqq/index.html?"+paramStr;
oDiv.setAttribute("href", qhref)
}
< / script >
chrome:
FireFOx:
should be related to the setting of chrome homology policy, and it is blank to share it directly with QQ friends on jquery.share.js. Does any god know how to solve this?