Java Blog Sharing implementation--facebook--linkein

Source: Internet
Author: User
<!doctype html>
<meta charset= "UTF-8" >
<title>Document</title>
<body>
<div>
<p id= "P1" > click on the button below to share this text with the image of Sina Weibo oh. @ Flying Fish </p>

<input type= "button" class= "btn" id= "btn" value= ' share ' >
</div>
</body>
<script src= ' jquery-1.9.1.js ' ></script>
<script>
$ (' #btn '). Click (function () {
Window.sharetitle = $ (this). Siblings (' #p1 '). html ();
Window.shareurl = $ (this). Siblings (' img '). attr (' src ');
Share ();
});
function Share () {
D means window.
(function (s,d,e) {Try{}catch (e) {}var f= ' http://v.t.sina.com.cn/share/share.php ', u=d.location.href,p=[' url= ', E (U ), ' &title= ', E (window.sharetitle), ' &appkey=2924220432 ', ' &pic= ', E (window.shareurl)].join ('); function A () {if (!window.open) ([F,p].join ('), ' MB ', [' toolbar=0,status=0,resizable=1,width=620,height=450,left= '), ( s.width-620)/2, ', top= ', (s.height-450)/2].join (')) U.href=[f,p].join ('); if (/firefox/.test (navigator.useragent)) {settimeout (a,0)}else{a ()}}) (Screen,document,encodeuricomponent);
}
function Test () {
var abc = [1,3,5].join (');
Alert (ABC);
}
Test ();
</script>



2

<a class= "fb_t" href= javascript:void ("window.open" http://www.facebook.com/share.php?u= ( encodeURIComponent (LOCATION.HREF))) "Title= share to Facebook" rel= "nofollow" >Facebook</a></div>


3

<a href= ' https://www.linkedin.com/shareArticle?mini=true&title=baidushare&url=http://www.baidu.com &summary=undefined&source=programmablewe3b ' >linked in 2</a>


4 Facebook

4 Wtitter

<a href= "Http://twitter.com/intent/tweet?url=http://www.baidu.com&text=hello World" >twitter2</a>

5

<a target= "_blank" title= "Share on Twitter" class= "Social-share-links__link social-share-links__link--twitter" Href= "https://twitter.com/intent/tweet?text=Make%20a%20Neon%20Vector%20Shooter%20in%20jMonkeyEngine%3A%20The% 20basics&amp;url=http%3a%2f%2fgamedevelopment.tutsplus.com%2ftutorials% 2fmake-a-neon-vector-shooter-in-jmonkeyengine-the-basics--gamedev-11616&amp;via=tutsplus "sl-processed=" 1 " ><i class= "fa fa-twitter Social-share-links__icon" ></i><div class= "Social-share-links__count" >4</div></a>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.