the webby of computing & IT learning ,troubleshooting guide
 
 
     
 

ฺTop friends Ed.2 ตกแต่งท้อปเฟรนด์แบบที่ 2

( 16659 views )
 

รูปตัวอย่าง


ตกแต่งท้อปเฟรนด์,ตกแต่งtop friends, ขยายรูปท้อปเฟรนด์


Description

สำหรับโค้ดชุดนี้ จะใช้ในการจัดรูปแบบ TopFriends แบบแนวๆ(บ้าน) อีกแบบ โดยใช้วิธีบีบบล๊อกรูปดิสเพลย์ให้แคบลง แล้วนำภาพไปวางด้านข้าง ทำให้ท้อปเฟรนด์ดูแปลกตาไปจากเดิม ในส่วนของบล๊อก header คุณสามารถใส่รูปภาพลงไปได้เช่นกัน อาจจะนำรูปมาใส่แทนคำว่า Friends เป็นต้น

โค้ดทั้งหมด เป็นการดัดแปลงจากโค้ดที่ผมใช้ในไฮไฟว์ผมเอง ซึ่งได้ปรับปรุงให้สามารถแสดงผลรองรับได้ทุกบราวเซอร์ และแสดงผลเหมือนกัน (เฮ้อ ทำไปได้)

คุณสามารถนำโค้ดทั้งหมดไปใช้ได้ทันที และสามารถตกแต่งส่วนอื่นๆ เพิ่มเติ่มได้จากโค้ดที่เกี่ยวข้องภายในเว็บ

Support: IE6-7-8, FireFox2-3, Chrome, Safari, Opera

Code

<style>

#friends h1 {
text-indent:-999px;
overflow:hidden;
border:none;
height:___px;
background:url(___) no-repeat top right;}
<!-- ซ่อนหัวข้อ Friends, เพิ่มความสูง Head -->
<!-- แล้วใส่รูปภาพHead ขนาดกว้างไม่เกิน 440px -->


#friends h2 {
background-color:transparent;
text-align:right;
padding-right:20px}
<!-- ทำใสให้แถบ view all friends -->
<!-- ไม่ต้องการส่วนนี้ใช้ display:none -->


#friends h2 a {color:red}
<!-- เปลี่ยนสีลิ้ง view all friends -->


.friend-picture{
border:none;
width:62px !important;
height:70px !important;
_margin-bottom:6px !important;
#margin-bottom:6px !important;
}

.friend-picture div {
width:60px !important;
height:60px !important;
margin-left:0px !important;
}

.friend-picture img {
width:60px !important;
height:60px !important;
}

.friend-picture a:hover img {
margin-left:2px}


#friends{
background-image:url(URL รูปพื้นหลัง);
background-color:โค้ดสี;
background-position: top left;
background-repeat: repeat;
height:540px;
_heigth:440px;#heigth:440px;
overflow:hidden !important}
<!-- ใส่รูป Background -->
<!-- ให้ใส่ url ลิ้งรูปภาพ -->

#friends .content {
background-color:transparent !important;
background-image:url(URL รูปด้านข้าง) !important;
background-repeat:no-repeat !important;
background-position:200px 15px !important;
_background-position:200px 20px !important;
#background-position:200px 20px !important;
overflow:hidden !important;
height:450px;}
รูปภาพด้านข้าง Top friends มีขนาดประมาณ 250 x 430
<!-- ควรกำหนดค่าเฉพาะ Background -->

#friends div.subsection{
width:180px;height:400px !important;
overflow-y:hidden !important;
padding-top:25px !important;
_padding-top:10px !important;
#padding-top:10px !important;}

#friends h2,
#friends div.listitem-separator,
#friends .subsection div {display:none}
div.friend,div.friend div 
{display:block !important}
div.friend-name a{display:none !important}

</style>

Last update: 03 August 2009 14:04:52

 
 
12 Comment(s)
 
12.
SimpleFtara say:
November 10, 2009 - 14:34:05

สวยดีค่ะ..เเต่เพื่อนไม่มันเปนเเนวตั้งลงมาเเบบในภาพอ่ะ =='มันยังเปนเเนวนอนเเบบเดิมยู๋....ต้องแก้ยังงัยอ่ะค่ะ

11.
ddd say:
November 4, 2009 - 21:38:20
http://donut-nz.hi5.com

เว็ปนี้ดีมากเลย หาโค๊ดง่าย แถมยังมีรูปให้ดูอีก แจ่มๆๆๆ พัฒนาต่อไป อยู่กะเราตลอดไปน๊าค่ะ

10.
ball say:
October 27, 2009 - 21:07:41

มัยเพื่อนมันไม่เป็นเหมือนในรูปอ่ะคับ

9.
วิน say:
October 23, 2009 - 13:55:08

อยากใ้้ห้เป็นแบบตัวอย่างเป๊ะเลยอ่า คับ

8.
น้ามฝน say:
September 29, 2009 - 11:35:37

ขอบคุนค่ะ!,สวยมากมายเรย'

7.
hong say:
September 23, 2009 - 18:17:25

g;r]`

6.
งามไส้ say:
September 18, 2009 - 06:35:10

ขอบคุนนะค้าาา^^ แต่มานไม่เป็นตามตัวอย่างอะ.. ทำไงคะ-*-

5.
taku say:
September 17, 2009 - 20:23:43
http://tapopo.net

@Gaproy ==> เต็มที่ก็ 15 คนนะครับ

4.
Gaproy say:
September 17, 2009 - 17:28:19
http://p-love-love-w.hi5.com

อยากทำให้มีเพื่อนมากกว่านี้ได้ไม๊อ่าค๊ะ ??

3.
FANG say:
September 5, 2009 - 20:31:36

ว้าววว แนวมากๆ ขอบคุณมากคร๊า ^^

2.
big say:
August 2, 2009 - 19:28:09
http://konteetukruk.hi5.com

เออพี่แล้ว URL อะ #friends{ background-image:url(URL รูปพื้นหลัง); background-color:โค้ดสี; background-position: top left; background-repeat: repeat; height:540px; _heigth:440px;#heigth:440px; overflow:hidden !important} <!-- ควรกำหนดค่าเฉพาะ Background --> คือไรอะ -*- คับ

1.
ฝน say:
July 26, 2009 - 21:16:22

ขอบคุณค่ะ ^^

 
Comment
 

 

 

 

   
   
 
Main
 
 
 
 
 
Meta
 
 
 
 
 
 

Last crawler

5 bot recent visit

GoogleBot9 February 2010, 8:43 am
GoogleBot9 February 2010, 5:29 am
GoogleBot9 February 2010, 4:19 am
GoogleBot8 February 2010, 11:53 pm
GoogleBot8 February 2010, 9:52 pm