Faid's Blog™
Welcome to my blog!
My Blog Menu
Recent
C++ File Encryptor
VB6 File Renamer (Hide/Lock your Data)
Simple Bootstrap 3.3.7 Sidebar Navigation
Article
2020
September
C++ File Encryptor
2018
September
VB6 File Renamer (Hide/Lock your Data)
April
Simple Bootstrap 3.3.7 Sidebar Navigation
2017
January
HTML Javascript Classic Calculator
Solution to Y2K38 bug in 32-bit PHP
July
Crash Bandicoot PSX 100% Save Game
2015
April
Know HTML for Beginner
ASCII to Binary (8-bit) Converter
Penghitung Jarak & Waktu VB6
Permainan Angka HTML Javascript
March
Kode Warna HTML
Efek Transisi CSS (Transition Effect CSS)
Jam Analog Tanpa Gambar (Analog Clock Without Image) HTML
Offline Javascript Obfucator
2014
August
Magnetic Piston (Free Energy and no Pollution Engine)
2013
October
10 Komponen Dalam Mothrboard
2012
December
Kalender Jawa Javascript
VB6 Folder Locker
November
Pembilang Angka (Number to Text)
Simple Javascript Date Calculator
Simple Text Counter
HTML TextArea OnFocus OnBlur
Jejaring sosial muncul, Email pun tersingkirkan
October
Arabic Keyboard (Keyboard Arab)
Membuat Folder Locker dari HTA (HTML Application)
7 Situs URL Shortener (Penyingkat URL)
August
Make Folder Locker from HTA (HTML Application)
July
Membuat Folder Locker dari Visual Basic Script (VBS)
Make Folder Locker with Visual Basic Script (VBS)
Cara Mendapatkan Chip Zynga Poker Gratis
Februari
Kata-Kata yang membuat Anda diam 1000 bahasa
Test Psikologi Cinta Terbaru
Make your own "Folder Locker" without any software
Cara membuat "Folder Locker" tanpa software
Label
Bahasa
Bootstrap
CMD
CSS
Folder Lock
Game
HTML
Javascript
Pengetahuan
Programming
PHP
Script
VB6
VBS
About
Facebook
Twitter
Monday, November 5, 2012
Simple Text Counter
Save this code into "*.hta" extension (ex. "TextCount.hta")
<HTML><HEAD> <TITLE>Text Counter</TITLE> <HTA:APPLICATION APPLICATIONNAME="TEXT_COUNTER" ID="TXT1234567890CTR" VERSION="1.0.3.1" BORDER="THIN" BORDERSTYLE="NORMAL" INNERBORDER="NO" MAXIMIZEBUTTON="NO" SCROLL="NO" SINGLEINSTANCE="YES" SELECTION="no"/></HEAD><CENTER><BODY><TABLE WIDTH="410px" HEIGHT="250px"> <TR><TD COLSPAN="3"><TEXTAREA STYLE="RESIZE:none;WIDTH:100%;HEIGHT:100%" WRAP="OFF" ID="input"></TEXTAREA></TD></TR> <TR><TD COLSPAN="3" HEIGHT="25px"><INPUT TYPE="TEXT" STYLE="WIDTH:100%;HEIGHT:100%" VALUE="Total Character(s) : " ReadOnly ID="result"></TD></TR> <TR><TD WIDTH="138px" HEIGHT="25px"><INPUT TYPE="BUTTON" STYLE="WIDTH:100%;HEIGHT:100%" VALUE="Count All" LANGUAGE="JavaScript" ONCLICK=count_all()></TD> <TD WIDTH="138px" HEIGHT="25px"><INPUT TYPE="BUTTON" STYLE="WIDTH:100%;HEIGHT:100%" VALUE="Count Without Space" LANGUAGE="JavaScript" ONCLICK=count_space()></TD> <TD WIDTH="136px" HEIGHT="25px"><INPUT TYPE="BUTTON" VALUE="Reset" STYLE="WIDTH:100%;HEIGHT:100%" LANGUAGE="JavaScript" ONCLICK=reset()></TD></TR></TABLE></BODY></CENTER> <SCRIPT LANGUAGE="JavaScript"> function count_all(){ result.value="Total Character(s) : "+(input.value).replace(/[\n\r]/g,"").length } function count_space(){ result.value="Total Character(s) : "+((input.value).replace(/ /g,"")).replace(/[\n\r]/g,"").length } function reset(){ input.value="" result.value="Total Character(s) : " } </SCRIPT></HTML>
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment