Discuz.Web/javascript/template_share.js
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*
javascript
*/
var share={
floatwin : function(list){
//floatwin('open_forward', -1, 350, 140);
//showWindow('mods','');
// if(BROWSER.ie) {
// showPrompt(null, null, '<span>' + this.show(list) + '</span>', 1500);
// } else {
// showDialog(this.show(list), 'info');
// }
showDialog(this.show(list), 'info');
//$('floatwin_forward_title').innerHTML = '转发';
//$('floatwin_forward_content').innerHTML = this.show(list);
//$('floatwin_forward_content').style.margin='15px';
//$('floatwin_forward_content').style.textAlign='left';
},
forward : function(c){
(location.href = c) || (window.location = c);
},
show :function (list){
var sharesite = list.split(",");
var html = '';
html += '<div class="c cl share">';
for (var i= 0 ;i< sharesite.length ; i++)
{
var s = sharesite[i].split("|");
if (parseInt(s[3]) == 1)
{
html +='<a href="javascript:void(0);" onclick="javascript:share.'+s[1]+'();return false;" Style="background:URL('+forumpath+'images/share/'+s[1]+'.gif) no-repeat 0 50%;margin-right:10px;white-Space:nowrap;padding:0px 0 4px 20px;float:left;display:inline;">'+s[2]+'</a>';
}
}
html +='</div>'
return html;
},
renren : function (){
var c = "http://share.xiaonei.com/share/buttonshare.do?link=" + encodeURIComponent(location.href) + "&title=" + encodeURIComponent(topictitle);
if (!window.open(c, "xiaonei", "toolbar=0,resizable=1,scrollbars=yes,status=1,width=626,height=436"))
//(location.href = c) || (window.location = c);
this.forward(c);
},
kaixin001 : function (){
var c = "http://www.kaixin001.com/repaste/share.php?rtitle=" + encodeURIComponent(topictitle) + "&rurl=" + encodeURIComponent(location.href) + "&rcontent=" + encodeURIComponent(topictitle);
//(location.href = c) || (window.location = c);
if (!window.open(c, "kaixin001", "location = yes,menubar=yes,resizable=1,scrollbars=yes,status=1,titlebar=yes,toolbar=yes,scrollbars=yes"))
this.forward(c);
},
douban : function (){
var c = "http://www.douban.com/recommend/?url=" + encodeURIComponent(location.href) + "&title=" + encodeURIComponent(topictitle);
if (!window.open(c, "douban", "toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330"))
//(location.href = c) || (window.location = c);
this.forward(c);
},
sohu : function ()
{
后面还有 70 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
