Tech & Tips

Tech & Tips เด็ดๆ สำหรับเว็บไซต์
1. ทำปุ่ม Share เพื่อแบ่งปัน LINK หรือหน้าเว็บไซต์ ใน Facebook
 แบบที่ 1  ปุ่ม Share แบบคลิกแล้วจะแชร์หน้าเว็บเพจที่ใส่ Code
   นำ Code ด้านล่างไปไว้ในตำแหน่งที่ต้องการให้แสดงปุ่ม Share
1.<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Loader" type="text/javascript"></script> 
2.<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script> 
3.<a name="fb_share" type="button_count" href="http://www.facebook.com/sharer.php">Share</a>
แบบที่ 2  ปุ่ม Share แบบใส่ URL ของหน้าที่ต้องการให้ Share
   นำ Code ด้านล่างไปไว้ในตำแหน่งที่ต้องการให้แสดงปุ่ม Share
1.<SCRIPT type=text/javascript src="http://static.ak.fbcdn.net/connect.php/js/FB.Loader"></SCRIPT> 
2.<SCRIPT type=text/javascript src="http://static.ak.fbcdn.net/connect.php/js/FB.Share"></SCRIPT> 
3.<TABLE border=0 width=90><TBODY><TR><TD> 
4.<a name="fb_share" type="box_count" share_url="http://www.codetukyang.com">แชร์หน้านี้</a> 
5.</TD></TR></TBODY></TABLE>
ในปุ่ม Share 2 แบบด้านบน  สามารถเปลี่ยนรูปแบบของกล่องได้ โดยเปลี่ยนค่าในช่อง type   ดังนี้
แบบที่ 3   ทำ Link ธรรมดาๆ สำหรับ Share แบบใส่ URL ของหน้าที่ต้องการให้ Share
    นำ Code ด้านล่างไปไว้ในตำแหน่งที่ต้องการให้แสดง Link ไว้ Share
1.<a href="http://www.facebook.com/sharer.php?u=http://www.thamwebsite.com&t=ทำเว็บไซต์.คอม">Share !!</a>
...............................................................................
2.  ให้ GOOGLE.CO.TH เป็น SEARCH ENGINE ประจำ WEB คุณ
คำอธิบาย CODE

ตัวอักษรสีแดง คือ ให้เปลี่ยนเป็น URL ของ WEBSITE คุณ
ตัวอักษรสีน้ำเงิน คือ ให้แก้เป็นว่า ค้นหาใน .......
Source Code
ต้องการให้แสดง SEARCH ENGINE ที่ไหนก็นำ CODE ด้านล่างไปไว้
1.<FORM method=GET action=http://www.google.co.th>
2.<INPUT TYPE=text name=q size=14 maxlength=255 value="">
3.<INPUT type=submit name=sa VALUE="ค้นหา"><br>  new google.translate.TranslateElement({ 
4.<input type=hidden name=domains value="codetukyang.com">
5.<input type=radio name=sitesearch value="" checked> ค้นหาใน GOOGLE.CO.TH<br>
6.<input type=radio name=sitesearch value="codetukyang.com"> ค้นหาใน CodeTukyang.com
7.</FORM>
..............................................................................
3. ทำ RSS เพื่อดึงข่าวเว็บอื่นมาติดเว็บไซต์
 ตัวอย่าง
วิธีการทำ
นำ Code ด้านล่างไปไว้ในตำแหน่งที่ต้องการให้แสดงข่าว
1. ข่าวบันเทิง
1. <iframe src ="http://www.zabzaa.com/news/entertain/entertain.php"
2. marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=No width=468 height=360> </iframe>
2. ข่าวบันเทิงต่างประเทศ
1.<iframe src ="http://www.zabzaa.com/news/ent/ent.php"
2. marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=No width=468 height=360></iframe>
3. ข่าวการเมือง
1.<iframe src ="http://www.zabzaa.com/news/politic/politic.php"
2.marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=No width=468 height=350></iframe>
4. ข่าวกีฬา
1.<iframe src ="http://www.zabzaa.com/news/sport/sports.php"
2.marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=No width=468 height=350></iframe>
5. ข่าวอาชญากรรม
1.<iframe src ="http://www.zabzaa.com/news/crime/crime.php"
2.marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=No width=468 height=350></iframe>
6. ข่าวเทคโนโลยี
1.<iframe src ="http://www.zabzaa.com/news/technology/technology.php"> 
2.marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=No width=468 height=360></iframe>