$(document).ready(function(){ //新浪微博 var _w = 16 , _h = 16; var param = { url:location.href, type:'3', count:'', /**是否显示分享数,1显示(可选)*/ appkey:'', /**您申请的应用appkey,显示分享来源(可选)*/ title:'', /**分享的文字内容(可选,默认为所在页面的title)*/ pic:'', /**分享图片的路径(可选)*/ ralateUid:'', /**关联用户的UID,分享微博会@该用户(可选)*/ rnd:new Date().valueOf() } var temp = []; for( var p in param ){ temp.push(p + '=' + encodeURIComponent( param[p] || '' ) ) } $('.share_box').append('') //qq空间 var p = { url:location.href, desc:'',/*默认分享理由(可选)*/ summary:'',/*摘要(可选)*/ title:'',/*分享标题(可选)*/ site:'',/*分享来源 如:腾讯网(可选)*/ pics:'' /*分享图片的路径(可选)*/ }; var s = []; for(var i in p){ s.push(i + '=' + encodeURIComponent(p[i]||'')); } $('.share_box').append(['分享到QQ空间'].join('')); })
function CheckLogin(game){ var taget_obj = document.getElementById('_userlogin'); myajax = new DedeAjax(taget_obj,false,false,'','',''); myajax.SendGet2("/member/ajax_loginsta.php?game="+game); DedeXHTTP = null; }