แบบฟอร์มกระพริบได้
อันนี้ได้มาจากความไม่คาดหมายเห็นว่าแปลกดีเลยเอามาแจกกันเลย เป็นการให้ข้อความในแบบฟอร์มกระพริบได้ตามสีที่เราต้องการ การใช้งานนั้นง่ายๆ ต้องการให้ TextBox หรือปุ่มอะไรกระพริบได้ ดูตัวอย่างด้านล่างได้เลย
ขั้นตอนการวางโค้ด
Copy โค้ดนี้ไปวางที่เว็บไซต์ของท่านตามขั้นตอนข้างต้น
code <form> <input type="submit" value="Submit" id="flashit"> </form> นำ Code ส่วนนี้ไปไว้ระหว่างหลัง TAG </body> <script language="JavaScript1.2"> /* Flashing form element Script- ฉ Dynamic Drive (www.dynamicdrive.com) For full source code, installation instructions, 100's more DHTML scripts, and Terms Of Use, visit dynamicdrive.com */ if (document.all&&document.all.flashit){ var flashelement=document.all.flashit if (flashelement.length==null) flashelement[0]=document.all.flashit function changecolor(which){ if (flashelement[which].style.color=='') flashelement[which].style.color="red" else flashelement[which].style.color="" } if (flashelement.length==null) setInterval("changecolor(0)",1000) else for (i=0;i<flashelement.length;i++){ var tempvariable='setInterval("changecolor('+i+')",'+'1000)' eval(tempvariable) } } </script>
code
<form> <input type="submit" value="Submit" id="flashit"> </form>
นำ Code ส่วนนี้ไปไว้ระหว่างหลัง TAG </body>
<script language="JavaScript1.2"> /* Flashing form element Script- ฉ Dynamic Drive (www.dynamicdrive.com) For full source code, installation instructions, 100's more DHTML scripts, and Terms Of Use, visit dynamicdrive.com */ if (document.all&&document.all.flashit){ var flashelement=document.all.flashit if (flashelement.length==null) flashelement[0]=document.all.flashit function changecolor(which){ if (flashelement[which].style.color=='') flashelement[which].style.color="red" else flashelement[which].style.color="" } if (flashelement.length==null) setInterval("changecolor(0)",1000) else for (i=0;i<flashelement.length;i++){ var tempvariable='setInterval("changecolor('+i+')",'+'1000)' eval(tempvariable) } } </script>
HOTLINE : 08-8128-6552 FAX : 0-2903-0080 Ext. 4490 Email : info@aiweb.co.th