/* FARSI TYPE This script developed to ease typing Farsi(Persian) in web forms where there is no Farsi Keyboard installed on a PC.Works with Internet Explorer, Gecko family (Mozilla/FireFox) and Opera. Author : Kaveh Ahmadi Author Contact : kaveh@ashoob.net Version : 1.3.0 Copyright 2002-2007 Kaveh Ahmadi (email : kaveh@ashoob.net) Special Thanks to Gonahkar (gonahkar.com), Mani Monajjemi (manionline.org) and Mazdak Aghakhani (mazdakam.com) for their support and their great ideas! This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA > > > USAGE < < < Step 0. Customize settings Set ShowChangeLangButton, KeyBoardError, ChangeDir variables values with your own opinon! ShowChangeLangButton // Show Change Language Button --> 0: Show / 1: Visible KeyBoardError // the action when useres keyboard is farsi --> 0: Disable FarsiType / 1: Show Error ChangeDir // change the input or textarea direction when language is change --> 0: No Action / 1: Change direction / 2: set Rtl/Ltr button Step 1. Include the "farsitype.js" file to your HTML
part (before ): Step 2. Add "lang" attribute with value "fa" to any or