การใช้ Marquee Code ในภาษา HTML
marquee tag เอาไว้ใช้ สำหรับ ทำให้ตัวอักษรเคลื่อน ที่ นั่นคือ เลื่อนไปเลื่อนมานั่นเอง ส่วนจะเลื่อนไปทางไหน ความเร็วยังไงงั้น ต้องมาปรับแต่งกันเอาครับ ดังนั้น ในบทความนี้ ผมจึงมานำเสนอวิธีการปรับแต่ง
marquee tag ต่าง ๆ ไม่ว่าจะเป็น ความเร็ว ทิศทาง และอื่น ๆ
การใช้
marquee tag นั้น จะขึ้นต้นด้วย
ตัวอย่างการใช้งาน marquee tag เบื้องต้น
Code
Output
การปรับแต่ง Behavior ใน Marquee tag
BEHAVIOR=SCROLL
| this code | produces this |
| |
BEHAVIOR=SLIDE
| this code | produces this |
| |
BEHAVIOR=ALTERNATE
| this code | produces this |
| |
การปรับแต่ง Direction ใน Marquee tag
Direction=LEFT
| this code | produces this |
| |
Direction=RIGHT
| this code | produces this |
| |
Direction=UP
| this code | produces this |
| |
Direction=DOWN
| this code | produces this |
| |
การปรับแต่ง Scrolldelay ใน Marquee tag
Scrolldelay เป็นค่า Default
| this code | produces this |
| |
Scrolldelay=500
| this code | produces this |
| |
Scrolldelay=1000
| this code | produces this |
| |
การปรับแต่ง Scrollamount ใน Marquee tag
Scrollamount เป็นค่า Default
| this code | produces this |
| |
Scrollamount=20
| this code | produces this |
| |
Scrollamount=50
| this code | produces this |
| |
การปรับแต่ง Loop ใน Marquee tag
Loop=40
| this code | produces this |
| |
Loop=20
| this code | produces this |
| |