Make an online prevodchik in transliteration on your website

(No ratings yet)
Загрузка ... Loading ...

Make it on your website online translator to the transliteration and back easy.

Often webmasters is such situation when you need to translate Russian content to Latin or vice versa. This may be a pair of words (such as names for CNC) and considerable amounts of text.

With the support of php and javascript to set your own Transliters site does not pose any difficulty.

Step 1. Create a JavaScript file transliteration

Create a file containing translit.js:

 nameForm = "form1" ; // имя формы var textField = "textarea" ; // имя элемента, в котором производится печать var One_imp = 700 ; // задержка печати символа после нажатия клавиши var Plural_imp = 30 ; // задержка печати в промежутках, во время удержания клавиши //------------------- // переменные режимов var register = "bottom" ; var lang = "RUS" ; // переменные таймеров var timerID = null var timerID0 = null var timerRunning = false //=== function StopPress ( ) { // останавливаем / * Configuration * / var nameForm = "form1"; / / name of the form var textField = "textarea"; / / name of the item to be printed var One_imp = 700 / / delay printing the symbol after pressing var Plural_imp = 30; / / Print the delay in between, while retaining the key / / ------------------- / / Variable modes var register = "bottom"; var lang = "RUS"; / / variables timers var timerID = null var timerID0 = null var timerRunning = false / / === function StopPress () {/ / stop  ; // запускаем make sure that the clock is stopped StopPress (); / / start  ; // запускаем make sure that the clock is stopped StopPress (); / / start  mode  onf , sunb ; onf = new String ( InstLang ( to_insert ) ) ; // изменение return the letter of the code symbol var onf, sunb; onf = new String (InstLang (to_insert)); / / change  strform2 = 'document.forms.' + nameForm + '.' + textField + '.value+=sunb;' ; eval ( strform2 ) ; } // конец режима печати } //=== function Backspace ( ) { // стираем символы var text ; var strform = 'text = new String printing character in the form var strform2 = 'document.forms.' + nameForm + '.' + textField + '. value + = sunb;'; eval (strform2);} / / end print mode} / / === function Backspace ( ) {/ / erase the symbols var text; var strform = 'text = new String  to_insert , mode ) ; // запуск множественой print symbol SymbolPress (to_insert, mode); / / start the multiplicity of  ( confirm ( "Вы действительно хотите очистить reset form, after confirmation if (confirm ("Are you sure you want to clear  ; // ждём и запускаем, оптовое удаление timerID0 = setTimeout ( "StartBS()" , One_imp ) ; break ; case "LAN" : // установка delete character Backspace (); / / wait and run, wholesale removal timerID0 = setTimeout ("StartBS ()", One_imp); break; case "LAN": / / setting  onk , inb ; onk = new String ( InstLang ( i ) ) ; // выбор return the letter of the code symbol var onk, inb; onk = new String (InstLang (i)); / / selection  ; case "RGS" : // установка tsykla end break; case "RGS": / / setting  ont ; ont = new String ( InstLang ( i ) ) ; // выбор return the letter of the code symbol var ont; ont = new String (InstLang (i)); / / selection  ; } // конец переключателя } //=== function InstLang ( num ) { // массивы с двумя tsykla end break;} / / end switch} / / === function InstLang (num) {/ / arrays with two 

Step 2. Connecting transliteration

Html code to add a page of the line, as in my example:

  "text/javascript" src = "http://www.ipmoney.info/scripts/translit.js" ></ script > <Script type = "text / javascript" src = "http://www.ipmoney.info/scripts/translit.js"> </ script> 

Create a form interpreter

  "form1" method = "post" action = "" > <Form name = "form1" method = "post" action = "">
 Recommended browsers work through family Opera.
 "textarea" class = "item" height = "400" width = "500" cols = "55" rows = "15" wrap = "virtual" >< / textarea > <Textarea name = "textarea" class = "item" height = "400" width = "500" cols = "55" rows = "15" wrap = "virtual"> </ textarea>
 <Br />
 "clipboardData.setData('Text',document.form1.textarea.value);" > buffer "onclick =" clipboardData.setData ('Text', document.form1.textarea.value); ">

 b > : <B> Standard Translation </ b>:
 "radio" value = "2" title = "Правила 2" name = "ttype" checked> ISO 9 - 1995 <input type = "radio" value = "2" title = "Rule 2" name = "ttype" checked>
 "radio" value = "1" title = "Правила 1" name = "ttype" > GOST 16876-71 <input type = "radio" value = "1" title = "Rule 1" name = "ttype">
 </ Form> 

An example of the working of transliteration online

Recommended browsers work through family Opera.


Standard translation:
ISO 9 - 1995
GOST 16876-71

Last modified: 10/08/2013 at 08:17
Published: Sunday, September 25, 2011 at 18:33
Choose the language:

Have something to say? Do not be silent!


Your comment will appear after being moderated.
Spam and off-topic posts are deleted.

To insert php-code, use the tag:
<pre lang="php"> php-code </ pre>


I'm not a spammer!