分享js a鏈接

Google+

javascript:void(window.open('https://plus.google.com/share?ur\l='+encodeURIComponent(location), 'Share to Google+','width=600,height=460,menubar=no,location=no,status=no'));

Twitter

javascript:(function(){window.twttr=window.twttr||{};var D=550,A=450,C=screen.height,B=screen.width,H=Math.round((B/2)-(D/2)),G=0,F=document,E;if(C>A){G=Math.round((C/2)-(A/2))}window.twttr.shareWin=window.open('https://twitter.com/share','','left='+H+',top='+G+',width='+D+',height='+A+',personalbar=0,toolbar=0,scrollbars=1,resizable=1');E=F.createElement('script');E.src='https://platform.twitter.com/bookmarklets/share.js?v=1';F.getElementsByTagName('head')[0].appendChild(E)}());

Facebook

javascript:var d=document,f='https://www.facebook.com/share',l=d.location,e=encodeURIComponent,p='.php?src=bm&v=4&i=1378393915&u='+e(l.href)+'&t='+e(d.title);1;try{if (!/^(.*\.)?facebook\.[^.]*$/.test(l.host))throw(0);share_internal_bookmarklet(p)}catch(z) {a=function() {if (!window.open(f+'r'+p,'sharer','toolbar=0,status=0,resizable=1,width=626,height=436'))l.href=f+p};if (/Firefox/.test(navigator.userAgent))setTimeout(a,0);else{a()}}void(0)

新浪微博

javascript:(function(){window.open('http://v.t.sina.com.cn/share/share.php?title='+encodeURIComponent(document.title)+'&url='+encodeURIComponent(location.href)+'&source=bookmark','_blank','width=450,height=400');})()

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • 不支持上傳文件,所以就復(fù)制過來了。作者信息什么的都沒刪。對(duì)前端基本屬于一竅不通,所以沒有任何修改,反正用著沒問題就...
    全棧在路上閱讀 2,061評(píng)論 0 2
  • 時(shí)隔如此之久,第一次看了『棋魂』。 看劇目的不可考,或許是無聊,或許是心血來潮。不管怎么說,這部聞名已久的番劇我終...
    執(zhí)迷閱讀 247評(píng)論 0 0
  • 語文,我們并不陌生,從牙牙學(xué)語就一直如影相隨,生活更離不開它?,F(xiàn)如今作為語文老師我,對(duì)它曾一度的厭煩,俗話說入行不...
    centaury閱讀 426評(píng)論 0 5
  • 濱海城下了一夜的大雪,趙休從睡夢(mèng)中醒來。感覺屋子里的光線比平時(shí)的霧霾天更亮了一些,拿起手機(jī)看了一眼時(shí)間,八點(diǎn)半。 ...
    凜楓閱讀 618評(píng)論 0 1
  • 你真的要把注意力全部放在自己的生活而不去關(guān)心我們的宇宙嗎?記得看過一篇文章講:想象一下你指甲蓋里的細(xì)菌,他們足夠聰...
    trilingualking閱讀 351評(píng)論 0 0

友情鏈接更多精彩內(nèi)容