<?php require_once("FCKeditor/fckeditor.php"); ?> <html> <head> <body> <script language="javascript" src="FCKeditor/fckeditor.js"></script> </head> <script type="text/javascript"> var oFCKeditor = new FCKeditor('txtProfile'); oFCKeditor.BasePath = "FCKeditor/"; oFCKeditor.Width = "700"; oFCKeditor.Height = "200"; oFCKeditor.ToolbarSet = 'Default' ; oFCKeditor.Create(); </script> </body> </html>
Quote:onKeyDown="return CheckCount()"
<?php require_once("FCKeditor/fckeditor.php"); ?> <html> <head> <title>ThaiCreate.Com Tutorial</title> </head> <body> <script language="JavaScript"> function CheckCount() { var maxChar = 50; if(document.frmMain.txtDetail.value.length > maxChar) { return false; } else { document.frmMain.txtCount.value = document.frmMain.txtDetail.value.length; } } </script> <body> <form name="frmMain" method="post" onKeyDown="return CheckCount()"> <?php $oFCKeditor = new FCKeditor('txtDetail') ; $oFCKeditor->BasePath = "FCKeditor/"; $oFCKeditor->Width= "770"; $oFCKeditor->Height= "300" ; $oFCKeditor->ToolbarSet ="Normal"; $oFCKeditor->Value ="" ; // $oFCKeditor->Create() ; ?> <br> <input name="txtCount" type="text" id="txtCount" value=""> </form> </body> </html>
<html> <head> <title>FCKeditor - Sample</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="robots" content="noindex, nofollow"> <script type="text/javascript" src="fckeditor/fckeditor.js"></script> <script type="text/javascript"> window.onload = function() { var oFCKeditor = new FCKeditor( 'MyTextarea' ) ; oFCKeditor.BasePath = "/fckeditor/" ; oFCKeditor.ReplaceTextarea() ; } </script> </head> <body> <textarea id="MyTextarea" name="MyTextarea">This is <b>the</b> initial value.</textarea> </body> </html>
<html> <head> <title></title> <script type="text/javascript" src="Fckeditor/fckeditor.js"></script> <script type="text/javascript"> window.onload = function() { var oFCKeditor = new FCKeditor( 'txtDetail' ) ; oFCKeditor.BasePath = "Fckeditor/" ; oFCKeditor.ReplaceTextarea() ; } </script> </head> <body> <script language="JavaScript"> function CheckCount() { var maxChar = 50; if(document.frmMain.txtDetail.value.length > maxChar) { return false; } else { document.frmMain.txtCount.value = document.frmMain.txtDetail.value.length; } } </script> <body> <form name="frmMain" method="post"> <textarea name="txtDetail" cols="40" rows="5" id="txtDetail" onKeyDown="return CheckCount()"></textarea> <br> <input name="txtCount" type="text" id="txtCount" value=""> </form> </body> </html>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง