Пятница, 16.10.2026, 15:57 Приветствую Вас, Гость
Главная | Форум | Файлы | Реклама(свободно) | http://russia-cs.ru | Статьи | Видео
Меню сайта

Категории раздела
Скрипты для ucoz [34]
Шаблоны uCoz [155]
Кнопки для форума [2]
Ранги [6]
Иконки для групп сайта [31]
Шапки для ucoz [7]
Видео уроки по ucoz [0]

Мини-чат
200

Block title

Наш опрос
Оцените мой сайт
Всего ответов: 342

  Реклама:

Всё для uCoz, PhotoShop, CS 1.6

Главная » Файлы » Всё для Ucoz » Скрипты для ucoz

Кодировщик (рус)
[ Чтоб скачать фаил зарегистрируйтесь, или войдите под своим логином] 11.10.2009, 18:17
[code]<SCRIPT LANGUAGE="JavaScript"> 
<!-- Original: Francisco Ryan Tolmasky (iopossum@mailcity.com) --> 
<!-- Web Site: http://iopossum.tripod.com --> 

<!-- This script and many more are available free online at --> 
<!-- The JavaScript Source!! http://javascript.internet.com --> 

<!-- Begin 
var TID = 0; 
var longer = 0; 
var thirdwrite = ""; 
var alphabet = new Array("0@","1#","2$","3%","4^", "5&", "6*", "7 = ","8-", "9+", "Аа", "Бб", "Вв", "Гг", "Дд", "Ее", "Жж", "Зз", "Ии", "Кк", "Лл", "Мм", "Нн", "Оо", "Пп", "Рр", "Сс", "Тт", "Уу", "Фф", "Хх", "Ъъ", "Цц", "Чч", "Ьь", "Шш", "Щщ", "Ыы", "Ээ", "Юю", "Яя", "Йй"); 
function preTime(coco, uinput, question) { 
longer = coco.length - 1; 
placement = 0; 
ref = 0 ; 
secondWrite = ""; 
firstWrite = ""; 
thirdWrite = ""; 
code1(coco, uinput, longer, question); 
} 
function findshift(letter) { 
for (i = 0; i < 36; i++) { 
if ((alphabet[i].substring(0,1) == letter) || (alphabet[i].substring(1,2) == letter)) { 
if (alphabet[i].substring(0,1) == letter) { 
x = 0; 
} 
if (alphabet[i].substring(1,2) == letter) { 
x = 1; 
} 
return i; 
} 
} 
} 
function check(letter) { 
bill = "no"; 
for (i = 0; i < 36; i++) { 
if ((alphabet[i].substring(0,1) == letter) || (alphabet[i].substring(1,2) == letter)) { 
bill = "yes"; 
} 
} 
if (bill == "yes") { 
return true; 
} 
else { 
return false; 
} 
} 
function fixoffset(takin) { 
if (takin > 35) { 
return (takin - 36); 
} 
else { 
return takin; 
} 
} 
function code1(inval1,inval2,inval3,sage) { 
if (check(inval2.charAt(placement))) { 
if (check(inval1.charAt(ref))) { 
if (sage == 0) {  
shift = findshift(inval1.charAt(ref)); 
} 
if (sage == 1) {  
shift = 36 - findshift(inval1.charAt(ref)); 
} 
} 
else { 
shift = 0; 
} 
orig = findshift(inval2.charAt(placement)); 
firstWrite = firstWrite+alphabet[fixoffset(orig+shift)].charAt(x); 
} 
else { 
firstWrite = firstWrite+inval2.charAt(placement); 
} 
secondWrite = inval2.substring(placement+1,inval2.length+1); 
thirdWrite = firstWrite+secondWrite; 
document.inputo.written.value = thirdWrite; 
placement++; 
if (ref == inval3) { 
ref = 0 
} 
else { 
ref++; 
} 
if (placement == (inval2.length)) { 
window.clearTimeout(TID); 
return false; 
} 
one = inval1; 
two = inval2; 
three = inval3; 
goer = sage; 
TID = window.setTimeout("code1(one, two, three, goer)", 0); 
} 
// End --> 
</script> 
<center> 
<form name="inputo"> 
<textarea name=written rows=12 cols=40>Напечатайте здесь лсообщение, требующее кодирования</textarea> 
<br> 
</font> 
<font color="#000000" size="2">Кодовая фраза :<input type=text name=codeWord value="кодовая фраза здесь"> 
<input type=button value="Закодировать" onClick="preTime(codeWord.value,written.value, 0);" style="font-size: 8pt; font-family: Arial"> 
<input type=button value="Раскодировать" onClick="preTime(codeWord.value,written.value, 1);" style="font-size: 8pt; font-family: Arial"> 
</form> 
</center>[/code]

Категория: Скрипты для ucoz | Добавил: Stefan
Просмотров: 544 | Загрузок: 0 | Комментарии: 1 | Рейтинг: 5.0/1
Скачать читы, моды, amx, плагины. модельки для Counter-Strike 1.6 c Just-Cs.3dn.ru
Всего комментариев: 0
Добавлять комментарии могут только зарегистрированные пользователи.
[ Регистрация | Вход ]
Форма Входа

Поиск

Статистика
Счетчик посещений

OnLine
Онлайн всего: 1
Гостей: 1
Пользователей: 0

Юзеры онлайн:
Нас посетили: