- เครดิต
- 1156
- เพื่อน
- ทักทาย
- บล็อก
- อัลบั้ม
- โพสต์
- กระทู้
- แชร์
- สำคัญ
- สิทธิ์อ่าน
- 50
- จำนวนผู้ติดตาม
- จำนวนผู้กำลังติดตาม
- เพศ
- ไม่บอก
|
แก้ไขครั้งสุดท้ายโดย vitaminzee เมื่อ 2013-2-17 15:06
ปุ่มจะอยู่ด้านขวาของเว็บทุกหน้า จะเป็นปุ่มสีจางๆ
แต่เมื่อนำเม้าไปแตะสีจะเข้มขึ้น

วิธีทำ
เปิดไฟ Css ของสกินที่ท่านใช้
ยกตัวอย่างเช่น template/สกินที่ใช้/common.css
แต่บางสกินอาจใช้ไฟล์ extend_common.css ก็ได้
เมื่อเปิดไฟล์ขึ้นมาแล้วให้เลื่อนลงไปด้านล่างสุดเลยแล้วคัดลอกโค้ดนี้ไปวาง- /**/
- #takip {
- position: fixed;
- right: 0;
- top: 220px;
- z-index: 999;
- }
- .takip {
- background-image: url(../../../images/social/social17.png);
- background-repeat: no-repeat;
- height: 42px;
- width: 42px;
- top: 100px;
- margin-left: auto;
- opacity:0.3;
- filter:alpha(opacity=50); /* For IE8 and earlier */
- }
- .takip:hover {
- background-image: url(../../../images/social/social17.png);
- cursor: pointer;
- opacity:1;
- filter:alpha(opacity=100); /* For IE8 and earlier */
- }
-
- .facebook {
- background-position: 0px 0px;
- }
- .twitter {
- background-position: 0px -42px;
- }
- .Google {
- background-position: 0px -84px;
- }
- .Youtube {
- background-position: 0px -126px;
- }
- .rss {
- background-position: 0px -168px;
- }
-
- /**/
คัดลอกไปที่คลิปบอร์ด หลังจากวาง CSS ด้านบนเสร็จแล้วให้เปิดไฟ template/สกินที่ใช้/footer.htm
แล้วนำโค้ดนี้ไปวางที่ </body>โดยวางให้อยู่ด้านบนของ</body>
รูปตัวอย่าง
- <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
- <title>Social Media Buttons</title>
- <script src="dkthemes.forumotion.in/38797.js" type="text/javascript"></script>
- <script type="text/javascript">
- $(document).ready(function(){
- $(".takip").mouseover(function(){
- $(this).filter(':not(:animated)').animate({width:135},{duration:500});
- });
- $(".takip").mouseout(function(){
- $(this).animate({width:42});
- });
- });
- </script>
-
-
- <div id="takip">
- <div class="facebook takip" onclick="location.href='http://www.facebook.com/'">
- </div>
- <div class="twitter takip" onclick="location.href='http://www.twitter.com/'">
- </div>
- <div class="Google takip" onclick="location.href='https://plus.google.com/'">
- </div>
- <div class="Youtube takip" onclick="location.href='http://www.youtube.com/'">
- </div>
- <div class="rss takip" onclick="location.href='#'">
- </div>
คัดลอกไปที่คลิปบอร์ด แล้วนำรูปในนี้ไปอัพไว้ที่ ไดเร็กเตอรีแรกของเว็บคุณหรือที่ public_html นั่นเอง
|
ขออภัย! โพสต์นี้มีไฟล์แนบหรือรูปภาพที่ไม่ได้รับอนุญาตให้คุณเข้าถึง
คุณจำเป็นต้อง ลงชื่อเข้าใช้ เพื่อดาวน์โหลดหรือดูไฟล์แนบนี้ คุณยังไม่มีบัญชีใช่ไหม? สมัครสมาชิก
x
คะแนน
-
ดูบันทึกคะแนน
|
|
|
|
|
|