$('.btn').click(function(){ var img = $(this).attr('imgs').split(','); window.sharetitle = '【'+$(this).attr('titles')+'】\n\n'; window.sharetitle+= $(this).attr('cont'); window.shareUrl = img.join('||'); window.shareurl = 'http://www.pentaq.com/share/flash_detail.html?flash='+$(this).attr('ids'); share(); is_weibo($(this).attr('ids')); }); function share(){ //d指的是window (function(s,d,e){ try{} catch(e){} var fs = 'http://service.weibo.com/share/share.php?url='+e(window.shareurl)+'&title='+e(window.sharetitle)+'&appkey=114761311&pic='+e(window.shareUrl)+'&searchPic=false'; function a(){ if(!window.open(fs,'mb',['toolbar=0,status=0,resizable=1,width=620,height=450,left=',(s.width-620)/2,',top=',(s.height-450)/2].join(''))) u.href=fs;}; if(/Firefox/.test(navigator.userAgent)) { setTimeout(a,0) }else{ a()}})(screen,document,encodeURIComponent); }
多图分享微博
最新推荐文章于 2019-06-29 19:52:13 发布