- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
- 84
- 85
- 86
- 87
- 88
- 89
- 90
- 91
- 92
- 93
- 94
- 95
- 96
- 97
- 98
- 99
function getLatin(str){
str = str.replace(/\?/g,'');
str = str.replace(/\:/g,'');
str = str.replace(/\;/g,'');
str = str.replace(/\|/g,'');
str = str.replace(/\</g,'');
str = str.replace(/\>/g,'');
str = str.replace(/\}/g,'');
str = str.replace(/\{/g,'');
str = str.replace(/\[/g,'');
str = str.replace(/\]/g,'');
str = str.replace(/\//g,'');
str = str.replace(/\\/g,'');
str = str.replace(/\+/g,'');
str = str.replace(/\-/g,'');
str = str.replace(/\=/g,'');
str = str.replace(/\~/g,'');
str = str.replace(/\#/g,'');
str = str.replace(/\@/g,'');
str = str.replace(/\$/g,'');
str = str.replace(/\^/g,'');
str = str.replace(/\&/g,'');
str = str.replace(/\*/g,'');
str = str.replace(/\(/g,'');
str = str.replace(/\)/g,'');
str = str.replace(/%/g,'');
str = str.replace(/\"/g,'');
str = str.replace(/\'/g,'');
str = str.replace(/,/g,'');
str = str.replace(/\./g,'');
str = str.replace(/!/g,'');
str = str.replace(/ /g,'_');
str = str.replace(/а/g,'a');
str = str.replace(/б/g,'b');
str = str.replace(/в/g,'v');
str = str.replace(/г/g,'g');
str = str.replace(/д/g,'d');
str = str.replace(/е/g,'e');
str = str.replace(/ё/g,'e');
str = str.replace(/ж/g,'zh');
str = str.replace(/з/g,'z');
str = str.replace(/и/g,'i');
str = str.replace(/й/g,'j');
str = str.replace(/к/g,'k');
str = str.replace(/л/g,'l');
str = str.replace(/м/g,'m');
str = str.replace(/н/g,'n');
str = str.replace(/о/g,'o');
str = str.replace(/п/g,'p');
str = str.replace(/р/g,'r');
str = str.replace(/с/g,'s');
str = str.replace(/т/g,'t');
str = str.replace(/у/g,'u');
str = str.replace(/ф/g,'f');
str = str.replace(/х/g,'h');
str = str.replace(/ц/g,'c');
str = str.replace(/ч/g,'ch');
str = str.replace(/ш/g,'sh');
str = str.replace(/щ/g,'sh');
str = str.replace(/ъ/g,'');
str = str.replace(/ы/g,'y');
str = str.replace(/ь/g,'');
str = str.replace(/э/g,'e');
str = str.replace(/ю/g,'yu');
str = str.replace(/я/g,'ya');
str = str.replace(/А/g,'a');
str = str.replace(/Б/g,'b');
str = str.replace(/В/g,'v');
str = str.replace(/Г/g,'g');
str = str.replace(/Д/g,'d');
str = str.replace(/Е/g,'e');
str = str.replace(/Ё/g,'e');
str = str.replace(/Ж/g,'zh');
str = str.replace(/З/g,'z');
str = str.replace(/И/g,'i');
str = str.replace(/Й/g,'j');
str = str.replace(/К/g,'k');
str = str.replace(/Л/g,'l');
str = str.replace(/М/g,'m');
str = str.replace(/Н/g,'n');
str = str.replace(/О/g,'o');
str = str.replace(/П/g,'p');
str = str.replace(/Р/g,'r');
str = str.replace(/С/g,'s');
str = str.replace(/Т/g,'t');
str = str.replace(/У/g,'u');
str = str.replace(/Ф/g,'f');
str = str.replace(/Х/g,'h');
str = str.replace(/Ц/g,'c');
str = str.replace(/Ч/g,'ch');
str = str.replace(/Ш/g,'sh');
str = str.replace(/Щ/g,'sh');
str = str.replace(/Ъ/g,'');
str = str.replace(/Ы/g,'y');
str = str.replace(/Ь/g,'');
str = str.replace(/Э/g,'e');
str = str.replace(/Ю/g,'yu');
str = str.replace(/Я/g,'ya');
И снова перед вами алфавит. Это код с реального сайта, http://ruskino29.ru/content/js/main.js.
Lure Of Chaos 08.03.2012 17:59 # 0
TarasB 08.03.2012 18:24 # +1
wvxvw 08.03.2012 20:00 # 0