Tech & Tips

การทำ RSS เพื่อดึงข่าวมาติด blog



วิธีการก็คือนำ Code ด้านล่างไปไว้ในตำแหน่งที่ต้องการแสดงข่าว ถ้าเป็น blogger ให้เข้าไปที่
รูปแบบ > เพิ่ม Gadget > HTML/จาวาสคริปต์ แล้วเอาโค๊ดไปว่างเป็นอันเสร็จ

1.ข่าวบันเทิง
<iframe src ="http://www.zabzaa.com/news/entertain/entertain.php" marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=No width=468 height=360></iframe>


2.ข่าวบันเทิงต่างประเทศ
<iframe src ="http://www.zabzaa.com/news/ent/ent.php" marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=No width=468 height=360></iframe>


3.ข่าวการเมือง
<iframe src ="http://www.zabzaa.com/news/politic/politic.php" marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=No width=468 height=350></iframe>


4.ข่าวกีฬา

<iframe src ="http://www.zabzaa.com/news/sport/sports.php" marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=No width=468 height=350></iframe>


5.ข่าวอาชญากรรม
<iframe src ="http://www.zabzaa.com/news/crime/crime.php" marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=No width=468 height=350></iframe>


6.ข่าวเทคโนโลยี
<iframe src ="http://www.zabzaa.com/news/technology/technology.php" marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=No width=468 height=360></iframe>




ชี้ Link แล้วมีกรอบ
วิธีการคือนำ Code ด้านล่างไปใส่ใน เพิ่ม Gadget โดยเข้าไปในส่วนของ  HTML/จาวาสคริปต์

<style type="text/css">
<!--a:hover {border-width : 3px;border-style : 
dotted;border-color : #000000; }--></style>

ซึ่งสามารถเปลี่ยนสีได้ ที่ border-color โดยเข้าไปเปลี่ยน #000000 เป็นโค๊ดสีอื่นแทน
ถ้าจะเปลื่ยนรูปแบบของเส้นขอบ ให้ดูที่ border-style แล้วกำหนดค่าเป็นอย่างอื่น เช่น 
none = ไม่มีเส้น
dotted = จุดๆ
dashed = เส้นประ
soild = เส้นเดี่ยว




การทำ RSS พยากรณ์อากาศ



วิธีการคือนำ Code ด้านล่างไปใส่ใน เพิ่ม Gadget โดยเข้าไปในส่วนของ  HTML/จาวาสคริปต์

<iframe src="http://www.tmd.go.th/daily_forecast_forweb.php" width="180" height="260" scrolling="no" frameborder="0"></iframe>

โดยจะแสดงข้อมูลพยากรณ์อากาศในจังหวัดหลักๆ ของแต่ละภูมิภาค


ไม่มีความคิดเห็น:

แสดงความคิดเห็น