求教分享功能JS 小弟初学者,做个JS分享功能,比如人人的http://share.renren.com/share/buttonshare.do?link={url}&title={title},title和url我都获取到了,可知不知道怎么用js把这两个参数传到href里面,求助,在线等 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 var title="xxx";var url="xxx";var shareLikn="http://share.renren.com/share/buttonshare.do?link={"+url+"}&title={"+title+"}"; 人人网的分享的例子function renren() { content = $(".Content").html(); RenRenContent = encodeURI(content); var attt = $("#img").attr("src"); window.location.href = "javascript:void((function(s,d,e){ var f='http://share.renren.com/share/buttonshare?link=',u=location.href,l='" + content + "',p=['" + attt + "','&title=', e(l)].join('');function a(){if(!window.open([f,p].join(''),'xnshare',['toolbar=0,status=0,resizable=1,width=626,height=436,left=',(s.width-626)/2,',top=',(s.height-436)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else a();})(screen,document,encodeURIComponent));";} <img class="img" title="分享到人人网" onclick="renren()" alt="分享到人人网" src="Images/CreatePic/renren.png" /> 大家有没有用js做过这样的树形菜单? Ajax同时执行两个request数据丢失问题 JQUERY的问题 javascrip困难的图片赋值传递问题,请各位帮帮忙!谢谢! 初学JS,请各位推荐几本入门级的书 如何通过脚本+数据库来实现鼠标拖拉的功能。 局部刷新 强,很强的问题. 改变窗口大小就自动刷新如何实现 ExtJs中panel引用外部htm无法显示 请问jHtmlArea使用扩展JQuery功用的方式定义,有什么优势? touchscroll怎样设置层上下滑动?
var url="xxx";
var shareLikn="http://share.renren.com/share/buttonshare.do?link={"+url+"}&title={"+title+"}";
content = $(".Content").html();
RenRenContent = encodeURI(content);
var attt = $("#img").attr("src"); window.location.href = "javascript:void((function(s,d,e){ var f='http://share.renren.com/share/buttonshare?link=',u=location.href,l='" + content + "',p=['" + attt + "','&title=', e(l)].join('');function a(){if(!window.open([f,p].join(''),'xnshare',['toolbar=0,status=0,resizable=1,width=626,height=436,left=',(s.width-626)/2,',top=',(s.height-436)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else a();})(screen,document,encodeURIComponent));";
} <img class="img" title="分享到人人网" onclick="renren()"
alt="分享到人人网" src="Images/CreatePic/renren.png" />