suttasilo โพสต์ 2016-4-13 22:33:06

แทรกปุ่มแชร์ socail media (ShareThis)ด้านข้าง

          คราวที่แล้วได้แนะการแทรกปุ่มแขร์ socail media (ShareThis)ในกระทู้วันนี้แนะนำแทรกปุ่มแขร์ socail media (ShareThis)ด้านข้าง โดยไปเอาโค้ดจากเว็บ ShareThis
          ไปที่สกิน default\common เปิดไฟล์ header.htm
หาโค้ด
</head>นำโค้ดนี้ไปต่อด้านล่างจากนั้น save ไฟล์ header.htm แล้วอัพไฟล์ header.htm ไปไว้ที่โฮสต์ default/common/header.htm    <script type="text/javascript">var switchTo5x=true;</script>
    <script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
    <script type="text/javascript" src="http://s.sharethis.com/loader.js"></script>          ไปที่สกิน default\common เปิดไฟล์ footer.htm แล้วอัพไฟล์ footer.htm ไปไว้ที่โฮสต์ default/common/footer.htm
หาโค้ด
</body>นำโค้ดนี้ไปต่อด้านล่าง จากนั้น save ไฟล์ footer.htm
    <script type="text/javascript">stLight.options({publisher: "6b829061-74ff-4b31-a128-2818cf4fa44e", doNotHash: false, doNotCopy: false, hashAddressBar: false});</script>
    <script>
    var options={ "publisher": "6b829061-74ff-4b31-a128-2818cf4fa44e", "position": <font color="Red">"left"</font>, "ad": { "visible": false, "openDelay": 5, "closeDelay": 0}, "chicklets": { "items": ["facebook", "twitter", "googleplus", "blogger", "email", "sharethis"]}};
    var st_hover_widget = new sharethis.widgets.hoverbuttons(options);
    </script>หากต้องการให้อยู่ด้านขวาให้เปลี่ยน "left" เป็น "right"
ผลลัพธ์ดังรูป


หน้า: [1]
ดูในรูปแบบกติ: แทรกปุ่มแชร์ socail media (ShareThis)ด้านข้าง