Flash Vista - หนัาแรก
เว็บใหม่ล่าสุด
The Two Tales
เกี่บยวกับเว็บไซท์ | Archive
แนวิเกชั่นหลัก
หนัาแรก
ลิ้งค์มาใหม่
คะแนนสุดสุด
นิยมที่สุด
เลือกโดยบรรณาธิการ
ค้นหา

บทเรียนแฟลช
แหล่งข้อมูลแฟลช
ข่าว Flash
แฟลชเทมเพลท
แฟลชเทมเพลทอินโทร
Website Templates
แฟลชเกมส์
หนังสือแฟลช
FlashVista โพลส์
Sitemap


สุ่มลิงก์
English
Conclave Obscurum
เกี่บยวกับเว็บไซท์ | Get another
FlashVista
เข้าสู่ระบบ
สมัครเป็นสมาชิก
สมัครรับจดหมายข่าว

เพิ่มลิ้งค์
แก้ไขลิ้งค์
รายการโปรด
แนะนำหมวด

โฆษณากับเรา
สนับสนุนเรา
Credits / Thanks
ติดต่อกับเรา

Flash Templates:

More Templates ...

รับจดหมายข่าว
ผู้ใช้

รหัดผ่าน



สมัครเป็นสมาชิก
ลืมรหัสผ่าน?
Partner websites
Free Hit Counter
Free Seo Tools
Free Tutorials
Free Video Tutorials
Forum signatures
Best Free Scripts
Wii Fit
Wii Fit News
Cool Tech Gadgets
Other Resources
แนะนำ
แนะนำเวบนี้ให้เพื่อน


รับจดหมายข่าว
สถานะ: ไม่ได้เข้าสู่ระบบ

Thai English German French Spanish Italian Portuguese Russian Polish Finnish Dutch Swedish Thai Romanian Traditional Chinese Simplified Chinese
ค้นหาไม่ได้เข้าสู่ระบบ
คำค้น: สิ่งที่ค้นหา: ค้นหาแบบกำหนดเงื่อนไข


Uppercase First Letter


NEW Flash Tutorials in Video Format - Powered by LearnFlash.com: 45 minutes of flash tutorials now available in streaming format or download. Topics Include flash for beginners, text effects, actionscripting, audio/video, flash 8 and more.


Printer version



by Guy Watson
www.flashguru.co.uk

Personally i feel that making the first letter of a word, in a sentence and sometimes the first letter of every word in a sentence, looks better than all lowercase. When it comes to input textfields and the loading of external content, i like to make the first letter capitalised, so i created a String method, which i use regularly and i thought i would share it...

Heres the code for the method:


String.prototype.ucFirst=function()
{
if(arguments[0] == true)
{
var words=this.split(" ")
for(var w in words)
{
words[w]=words[w].ucFirst()
}
return words.join(" ")
}
return this.charAt(0).toUpperCase()+this.substring(1,this.length)
}


And heres how you would use it:


input_title="this is my title";
title=input_title.ucFirst();
input_name="guy watson";
name=input_name.ucFirst(true);



(เพิ่มไปแล้ว: 02-02-2004, ฮิต: 0, คะแนน: 2.88, โหวด: 17, คำวิจารณ์: 1)
เพิ่มในรายการโปรด แนะนำให้เพื่อน

คำวิจารณ์: (1)

i love you
(เพิ่มไปแล้ว: 01-10-2005 ผู้ใช้: Guest)


เขียนคำวิจารณ์
Please note:
We review EVERY comment before it appears on the site, so please dont waste your time by posting spam links :)
No URLs allowed, no HTML please.

If you register or login first, your review will contain your nickname


ให้คะแนน



ดีที่สุด
ดีมาก
ดี
พอได้
ไม่ดี,ไม่สมบูรณ์