2016-09-28 91 views
-2

嗨我張貼在我的職業生涯頁一些工作使用HTML實現靜態網頁的工作,CSS存在對沒有後端功能的一部分。我需要分享這些工作到Facebook或Twitter或通過點擊這些按鈕鏈接在任何一個可以幫助我如何共享選項添加到工作portals.Here是小提琴鏈接如何共享從靜態的HTML頁面Facebook或Twitter或LinkedIn

<div class="digitalmarketingassociate"> 
        <span class="digit">Digital Marketing Associate</span> 
        <div class="applynow">Apply Now</div> 
        <div class="moreinfo accordion" >More Info</div> 
        <div class="panel"> 
         <p>          
          <h3 class="job">Roles and Responsibilities</h3> 
          <ul class="rolesand">         
           <li class="rolesandres">Responsibility for hands on interaction within social media sites such as facebook, twitter etc.</li> 
           <li class="rolesandres">Responsibility for hands on interaction with off-site social properties ; other people blogs, other company facebook fan pages,forums etc.</li>         
          </ul> 
       <h3 class="job">How to apply</h3> 
          <p class="howtoapp">Email us your resume along with your Linkedin profile on ></a> Alternatively, you can also apply via <img src="image/testimonial/linkedin.png" alt="linkedin" /></p> 

          <h3 class="job">Share this job</h3> 
          <p> 
          <img src="image/career page/facebook.png" alt="facebook" class="careerfacebook"/> 
          <img src="image/career page/twitter.png" alt="twitter" class="careertwitter" /> 
          <img src="image/career page/linkedin.png" alt="linkedin" class="careerlinkedin"/> 
          <img src="image/career page/whatsapp.png" alt="whatsapp" class="careerwhatsapp"/> 
          <img src="image/career page/email.png" alt="email" class="careeremail" /></p> 
         </p> 
        </div> 

       </div> 
+1

這些button''點擊 - 通過使可以單擊按鈕啓動,我想 –

+0

要讀出社交網絡的documetation並做有關這個主題的網絡搜索。這不是一個教程服務和研究這並不困難 – charlietfl

回答

-1

您可以創建和配置自己的按鈕位置: https://developers.facebook.com/docs/plugins/share-button#configurator

對於Twitter的,你可以看看這裏:

https://dev.twitter.com/web/tweet-button

對於多個共享按鈕,你可以給你的每一個「份額「按一個不同的ID,然後更改每個選項(標題,圖像,說明)。 請參考這個問題:

MANY FACEBOOK SHARE buttons in the same page?

+0

但是在一個頁面中的所有不同的工作職位,那麼我怎樣才能分享特定的工作 – user6728960

+0

你將不得不檢查你需要的每個社交媒體的文檔,但對於Facebook檢查我在答案中的更新。 –

+0

首先它是一個靜態網站,我已經發布了所有工作在單一頁面稱爲職業每個職位有一個共享按鈕URL是相同的所有職位,我問我怎麼可以用來發布特定的職位。 – user6728960

0

我認爲你正在創建郵件,並想簡單的鏈接,分享你的URL。

這裏有樣本股鏈接

/*Facebook Share*/ 
<a href="https://www.facebook.com/sharer/sharer.php?u=http%3A//yourpage.com">Share on Facebook</a> 

/*Twitter Share*/ 
<a href="https://twitter.com/home?status=This%20is%20Awesome%20page!!%20http%3A//yourpage.com">Share on Twitter</a> 

/*Google Plus*/ 
<a href="https://plus.google.com/share?url=http%3A//yourpage.com">Share on Google+</a> 

/*LinkedIn*/ 
<a href="https://www.linkedin.com/shareArticle?mini=true&url=http%3A//yourpage.com&title=Title%20of%20your%20Page&summary=Optional%20Summary&source=http%3A//yoursource.com">Share on LinkedIn</a> 

/*What's App from Mobile*/ 
<a href="whatsapp://send?text=The text to share!" data-action="share/whatsapp/share">Share via Whatsapp</a> 

/*Email*/ 
<a href="mailto:[email protected]?&subject=Your Subject&body=your%20mail%20content">Send Email</a> 
+0

但也有大家這麼多的就業崗位有分享按鈕,然後如何共享只有特定職位 – user6728960

0

對於Twitter的</html>前加入。

<script>window.twttr = (function(d, s, id) { 
    var js, fjs = d.getElementsByTagName(s)[0], 
    t = window.twttr || {}; 
    if (d.getElementById(id)) return t; 
    js = d.createElement(s); 
    js.id = id; 
    js.src = "https://platform.twitter.com/widgets.js"; 
    fjs.parentNode.insertBefore(js, fjs); 

    t._e = []; 
    t.ready = function(f) { 
    t._e.push(f); 
    }; 

    return t; 
}(document, "script", "twitter-wjs"));</script> 

對於Facebook,請在</html>之前加上。

<div id="fb-root"></div> 
<script>(function(d, s, id) { 
    var js, fjs = d.getElementsByTagName(s)[0]; 
    if (d.getElementById(id)) return; 
    js = d.createElement(s); js.id = id; 
    js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.3"; 
    fjs.parentNode.insertBefore(js, fjs); 
}(document, 'script', 'facebook-jssdk')); 
</script> 

主頁列表的HTML,每個項目都有它自己的Twitter和FB按鈕。每個引用特定的帖子頁面。

<ul> 
    <li> 
    <h3>Job #1</h3> 
    <div class="fb-share-button" data-href="https://example.com/post/1" 
     data-layout="button"></div> 
    <a href="https://twitter.com/share" class="twitter-share-button" 
     data-url="https://example.com/post/1">Tweet</a> 
    </li> 
    <li> 
    <h3>Job #2</h3> 
    <div class="fb-share-button" data-href="https://example.com/post/2" 
     data-layout="button"></div> 
    <a href="https://twitter.com/share" class="twitter-share-button" 
     data-url="https://example.com/post/2">Tweet</a> 
    </li> 
</ul> 

謝謝!

+0

我加了這一點,但無法看到的圖標 – user6728960

+0

我可以有你的郵件編號,這樣我可以分享我的網址 – user6728960

+0

試過發佈它顯示在Twitter上的網址,如果我上單擊一下就被重定向到的cPanel – user6728960

相關問題