Instant_translit
O plugin está escrito en dúas versións:
- A primeira opción é un ambiente limpo JavaScripQue pode facilmente cousas en calquera lugar.
- A segunda opción está deseñado para os amantes Jquery e é un plug estándar.
Este plugin pode ser usado en textarea и input Norma ISO 9-95 и Gústalle 16876-71 IE6, IE7, IE8, Opera, Firefox, Ghrome e Safary. Pola forma en que recentemente notou que Ghrome и Safary
Un exemplo do plugin. Conxunto de regras para textarea. Norma ISO 9-95
Textarea
Norma ISO 9-95 Gústalle 16876-71.
Instant_translit с Jquery -
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script src="http://code.jquery.com/jquery-latest.js"></script> <script src="http://www.ageent.ru/demo/complete/instant_translit/jquery/instant_translit.js"></script> <script> $(document).ready(function(){ $(".ageent_trans").keypress(function(e) { /* e - событие obect_now - объект rules - правила для перевода. 1 стандарт ISO 9-95; 2 - ГОСТ 16876-71; */ $(this).Instant_translit({event_now: e, rules: 1, obect_now : this}); }); }); </script> </head> <body> <form> <textarea cols="150" class="ageent_trans" rows="20"></textarea> </form> </body> </html>
|
Engadir comentario
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <head> <script src="http://www.ageent.ru/demo/complete/instant_translit/script/instant_translit_script.js"></script> </head> <body> <form target="chattag" name="chat"> <!-- event - событие this - объект rules - правила для перевода. 1 стандарт ISO 9-95; 2 - ГОСТ 16876-71; --> <textarea name="message" onkeypress="translate_letter(event, this, rules=1);" cols="150" rows="20"></textarea> </form> </body> </html>
|
Если Вы нашли что-то полезное, то пожалуйста пожертвуйте Z167645604231 Casa
:)