求教分享功能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" /> javascript nicEdit 哪位可以解释一下这段代码 用js 怎么采集网页信息 200分求助 EXT高手 为什么我引用不了这个JS文件 请看看这个htm文件写法怎么总是提示有错误那? 怎么得到当前的标签(或节点)?或者怎么判断某子节点树? 哪位大哥知道由没有好的javascript的编辑器 由自动提示功能 输入一个对象后他的所有属性和方法有提示 大家讨论一下javascript作界面的问题吧!(有分送!) 求教,谁可以在光标停留的区域,动态插入代码 更改百度搜索表单 请问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" />