function fb_modal_load(id){ i =id -1;//ให้ค่าลดลงทีละ 1 if(id > 1){ document.getElementById("dplay").value ='Wait ‘+i+’ Second..'; }else{ //เมื่อค่า i == 1 document.getElementById("dplay").value ='Close'; document.getElementById("dplay").disabled =''; } setTimeout('countdown('+i+')', 1000); //1000 = 1 วินาที }
<body onLoad="JavaScript:storyonload('<?=$page;?>','<? if($_GET['p']=="success"or$_GET['p']=="error"){echo $post;} ?>');doCallAjax();onload_body_chat();fb_modal_load('4');">
<div id="facebook" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h3 id="myModalLabel">Facebook Like</h3> </div> <div class="modal-body"> <center> <p> <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/th_TH/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <div class="fb-like-box" data-href="https://www.facebook.com/IconMineCraftThailand" data-width="400" data-height="300" data-show-faces="false" data-stream="true" data-header="true"></div> </p> </center> </div> <div class="modal-footer"> <button class="btn" id="dplay" data-dismiss="modal" aria-hidden="true" disabled='disabled'>Close</button> </div> </div>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง