พอดีต้องใช้งานลักษณะนี้ เลยไปได้ source จาก stackoverflow.com มาทดลองรันดูได้ผลเป็นที่หน้าพอใจ ดูตัวอย่าง code ด้านล่างครับ อธิบายด้วยตัวมันเองอยู่แล้ว
Javascript ดึงชื่อไฟล์และนามสกุลจาก URL
February 1st, 2012
admin | 15 viewsขอยกตัวอย่างนะครับเช่น http://www.memo8.com/toolkits/home.html ก็จะได้
- filename1 = ‘home.html’ (ชื่อไฟล์+นามสกุล)
- filename2 = ‘home’ (เฉพาะชื่อไฟล์ไม่มีนามสกุล)
- file_extension =’html’ (เฉพาะนามสกุล)
รูปแบบ Cursor Styles ใน CSS2 และ CSS3
January 17th, 2012
admin | 38 viewsใช้ css มาก็บ่อย บางทีใช้ Cursor Styles ก็ไปค้นในเน็ตเริ่มเสียเวลาเอามาไว้ในเว็บนี้เลยแล้วกัน และด้านล่างนี้เป็นรูปแบบ CSS Cursor แบบต่างๆตั้งแต่ CSS2-CSS3 ลองเอาไปปรับใช้ให้เหมาะกับอินเตอร์เฟสในหน้าเว็บครับ
เพิ่ม IGNORE หลังคำสั่ง INSERT เมื่อต้องการละเว้นการ Duplicate entry
January 17th, 2012
admin | 40 viewsบางครั้งมีการ insert โดย database มีการ set unique key values เพื่อไม่ให้ข้อมูลซ้ำกัน หลายครั้งพอเริ่มคำสั่ง sql เมื่อเจอรายการที่ซ้ำ (Duplicate entry) คำสั่งก็จะหยุดทำงาน อาจจะไม่เหมาะสม ในกรณีข้อมูลเยอะแล้วต้องมาไล่ดูว่ารายการไหนซ้ำ งั้นลองเพิ่ม IGNORE หลังคำสั่ง INSERT เพื่อละเว้นการหยุดการทำงานในกรณี Duplicate entry ตัวอย่างตามด้านล่างครับ
INSERT IGNORE INTO TB_NAME (COLUMN) VALUES (DATA);
Code PHP สำหรับค้นหาวันที่สุดท้ายของเดือน
December 22nd, 2011
admin | 86 viewsโค้ดตามด้านล่างครับ
$LastDate = date(’Y-m-d’,strtotime(’-1 second’,strtotime(’+1 month’,strtotime(date(’m').’/01/’.date(’Y').’ 00:00:00′))));
Source. http://ullu.wordpress.com/2007/02/28/find-last-day-of-the-month-in-php/
Javascript auto uppercase. .
September 9th., 2011
admin | 543 viewsFunction to change characters to uppercase automatically. Try typing in the textbox to deploy it.
Eclipse Android error : An SDK Target must be specified..
September 7th., 2011
admin | 723 viewsI found the Error. “An SDK Target must be specified.” While the Eclipse Android Project started as a bottom.
Resize และ Crop รูป ด้วย Quick JPEG Resize and Crop (Freeware)
September 7th., 2011
admin | 827 viewsโปรแกรมฟรีขนาดเล็กสำหรับ Resize และ Crop รูปภาพนามสกุล jpeg เท่านั้น สามารถกำหนด quality ได้ แนะนำงานเว็บให้ใช้ quality = 90 ครับเพราะจะได้ความละเอียด และขนาดไฟล์ที่เหมาะสมกับงานเว็บสุด
จัดกลุ่ม Icon บน Desktop ให้เป็นระเบียบด้วย Fences
September 5th, 2011
admin | 1,760 views
Fences is a program that is both free and Pro versions. Instead, we use the free, it gives our lives a lot better then Fences ideal for people who are placed on the Desktop Shortcut Icon or reasonable steps to Install the programs generally do not seek to explain. I primarily use it.
Command on Linux, a simple test to send Email.
June 14th, 2011
admin | 859 viewsType the following command and press Enter. >> Control D (Cc is the complete or not.) >> Press the Enter key again.
RSS Feed
Twitter

