Бесплатный форум: форум поддержки
Добро пожаловать на форум поддержки сервиса Forum2x2 !

Для полноценной работы с форумом,
пожалуйста, войдите на форум под своим логином (если вы уже зарегистрированы) или же зарегистрируйтесь.


С нашей помощью вы можете создать форум,
похожий на этот!
Поделиться ссылкой

Мы в социальных сетях



- Правила форума -

для обязательного прочтения!


Внимание! Важная информация для РЕГИСТРАЦИИ на форуме:

Пожалуйста, не регистрируйтесь на этом форуме с электронными адресами mail.ru, bk.ru, inbox.ru, list.ru - вам может не прийти письмо со ссылкой активации!
Вы можете воспользоваться адресами типа yandex.ru, rambler.ru, gmail.com и т.д.
Интересные решения
Быстрый переход к сервисам: JPG-Net Видео фоторедактор Транслит
Видео-туториалы
Настройка шапки форума
Категории и подфорумы - 1
Создание портала
Модули
Виджеты
Как присваивать награды
Выброс кубиков
Pop-up для входа на форум
Настроение в профиле

Генератор ASCII графики

Предыдущая тема Следующая тема Перейти вниз

Генератор ASCII графики

Сообщение автор Devil Scorpio в Сб 10 Дек - 15:09

Доброго времени суток уважаемые!
Представляю вам генератор который пишет ваш текст символами.
Выглядеть надпись будет так:


Может выглядеть и по другому, смотря какой режим шрифта вы выбираете)
Вот вам полностью рабочий код этого чуда, может кому и пригодится)
Код вставляется в новую html страницу ПА> Модули> HTML.
Код:
<!-- <body> --><P align="justify"><B>ASCII графика</B> (от англ. ASCII artwork) — форма изобразительного искусства, использующая символы ASCII на моноширинном экране компьютерного терминала (терминальный сервер) или принтера для представления изображений. При создании такого изображения используется палитра, состоящая из буквенных, цифровых символов и символов знаков пунктуации из числа 95 символов таблицы ASCII. По причине высокой вероятности различий в представлении на системах с национальными вариантами таблицы остальные 160 символов, как правило, не используются.</P><HR width="100%" size="1"><DIV id="maincolumn"><DIV class="nopad"> <script language="JavaScript"> ang_A= new Array(); ang_A[0]= "00000000"; ang_A[1]= "00111100"; ang_A[2]= "01100110"; ang_A[3]= "01111110"; ang_A[4]= "01100110"; ang_A[5]= "01100110"; ang_A[6]= "00000000"; ang_B= new Array(); ang_B[0]= "00000000"; ang_B[1]= "01111100"; ang_B[2]= "01100110"; ang_B[3]= "01111100"; ang_B[4]= "01100110"; ang_B[5]= "01111100"; ang_B[6]= "00000000"; ang_C= new Array(); ang_C[0]= "00000000"; ang_C[1]= "00111100"; ang_C[2]= "01100110"; ang_C[3]= "01100000"; ang_C[4]= "01100110"; ang_C[5]= "00111100"; ang_C[6]= "00000000"; ang_D= new Array(); ang_D[0]= "00000000"; ang_D[1]= "01111100"; ang_D[2]= "01100110"; ang_D[3]= "01100110"; ang_D[4]= "01100110"; ang_D[5]= "01111100"; ang_D[6]= "00000000"; ang_E= new Array(); ang_E[0]= "00000000"; ang_E[1]= "01111110"; ang_E[2]= "01100000"; ang_E[3]= "01111000"; ang_E[4]= "01100000"; ang_E[5]= "01111100"; ang_E[6]= "00000000"; ang_F= new Array(); ang_F[0]= "00000000"; ang_F[1]= "01111110"; ang_F[2]= "01100000"; ang_F[3]= "01111000"; ang_F[4]= "01100000"; ang_F[5]= "01100000"; ang_F[6]= "00000000"; ang_G= new Array(); ang_G[0]= "00000000"; ang_G[1]= "00111100"; ang_G[2]= "01100000"; ang_G[3]= "01101110"; ang_G[4]= "01100110"; ang_G[5]= "00111100"; ang_G[6]= "00000000"; ang_H= new Array(); ang_H[0]= "00000000"; ang_H[1]= "01100110"; ang_H[2]= "01100110"; ang_H[3]= "01111110"; ang_H[4]= "01100110"; ang_H[5]= "01100110"; ang_H[6]= "00000000"; ang_I= new Array(); ang_I[0]= "00000000"; ang_I[1]= "01111110"; ang_I[2]= "00011000"; ang_I[3]= "00011000"; ang_I[4]= "00011000"; ang_I[5]= "01111110"; ang_I[6]= "00000000"; ang_J= new Array(); ang_J[0]= "00000000"; ang_J[1]= "01111110"; ang_J[2]= "00000110"; ang_J[3]= "00000110"; ang_J[4]= "01100110"; ang_J[5]= "00111100"; ang_J[6]= "00000000"; ang_K= new Array(); ang_K[0]= "00000000"; ang_K[1]= "01100110"; ang_K[2]= "01101100"; ang_K[3]= "01111000"; ang_K[4]= "01101100"; ang_K[5]= "01100110"; ang_K[6]= "00000000"; ang_L= new Array(); ang_L[0]= "00000000"; ang_L[1]= "01100000"; ang_L[2]= "01100000"; ang_L[3]= "01100000"; ang_L[4]= "01100000"; ang_L[5]= "01111110"; ang_L[6]= "00000000"; ang_M= new Array(); ang_M[0]= "00000000"; ang_M[1]= "01100011"; ang_M[2]= "01110111"; ang_M[3]= "01101011"; ang_M[4]= "01100011"; ang_M[5]= "01100011"; ang_M[6]= "00000000"; ang_N= new Array(); ang_N[0]= "00000000"; ang_N[1]= "01100110"; ang_N[2]= "01110110"; ang_N[3]= "01101110"; ang_N[4]= "01100110"; ang_N[5]= "01100110"; ang_N[6]= "00000000"; ang_O= new Array(); ang_O[0]= "00000000"; ang_O[1]= "00111100"; ang_O[2]= "01100110"; ang_O[3]= "01100110"; ang_O[4]= "01100110"; ang_O[5]= "00111100"; ang_O[6]= "00000000"; ang_P= new Array(); ang_P[0]= "00000000"; ang_P[1]= "01111100"; ang_P[2]= "01100110"; ang_P[3]= "01111100"; ang_P[4]= "01100000"; ang_P[5]= "01100000"; ang_P[6]= "00000000"; ang_Q= new Array(); ang_Q[0]= "00000000"; ang_Q[1]= "00111100"; ang_Q[2]= "01100110"; ang_Q[3]= "01101110"; ang_Q[4]= "01100110"; ang_Q[5]= "00111110"; ang_Q[6]= "00000011"; ang_R= new Array(); ang_R[0]= "00000000"; ang_R[1]= "01111100"; ang_R[2]= "01100110"; ang_R[3]= "01111100"; ang_R[4]= "01100110"; ang_R[5]= "01100110"; ang_R[6]= "00000000"; ang_S= new Array(); ang_S[0]= "00000000"; ang_S[1]= "00111100"; ang_S[2]= "01100000"; ang_S[3]= "00111100"; ang_S[4]= "00000110"; ang_S[5]= "00111100"; ang_S[6]= "00000000"; ang_T= new Array(); ang_T[0]= "00000000"; ang_T[1]= "01111110"; ang_T[2]= "00011000"; ang_T[3]= "00011000"; ang_T[4]= "00011000"; ang_T[5]= "00011000"; ang_T[6]= "00000000"; ang_U= new Array(); ang_U[0]= "00000000"; ang_U[1]= "01100110"; ang_U[2]= "01100110"; ang_U[3]= "01100110"; ang_U[4]= "01100110"; ang_U[5]= "00111100"; ang_U[6]= "00000000"; ang_V= new Array(); ang_V[0]= "00000000"; ang_V[1]= "01100110"; ang_V[2]= "01100110"; ang_V[3]= "01100110"; ang_V[4]= "00111100"; ang_V[5]= "00011000"; ang_V[6]= "00000000"; ang_W= new Array(); ang_W[0]= "00000000"; ang_W[1]= "01100011"; ang_W[2]= "01100011"; ang_W[3]= "01101011"; ang_W[4]= "01111111"; ang_W[5]= "00110110"; ang_W[6]= "00000000"; ang_X= new Array(); ang_X[0]= "00000000"; ang_X[1]= "01100110"; ang_X[2]= "00111100"; ang_X[3]= "00011000"; ang_X[4]= "00111100"; ang_X[5]= "01100110"; ang_X[6]= "00000000"; ang_Y= new Array(); ang_Y[0]= "00000000"; ang_Y[1]= "01100110"; ang_Y[2]= "00111100"; ang_Y[3]= "00011000"; ang_Y[4]= "00011000"; ang_Y[5]= "00011000"; ang_Y[6]= "00000000"; ang_Z= new Array(); ang_Z[0]= "00000000"; ang_Z[1]= "01111110"; ang_Z[2]= "00001100"; ang_Z[3]= "00011000"; ang_Z[4]= "00110000"; ang_Z[5]= "01111110"; ang_Z[6]= "00000000"; rus_A= new Array(); rus_A[0]= "00000000"; rus_A[1]= "00111100"; rus_A[2]= "01100110"; rus_A[3]= "01111110"; rus_A[4]= "01100110"; rus_A[5]= "01100110"; rus_A[6]= "00000000"; rus_B= new Array(); rus_B[0]= "00000000"; rus_B[1]= "01111100"; rus_B[2]= "01100000"; rus_B[3]= "01111100"; rus_B[4]= "01100110"; rus_B[5]= "01111100"; rus_B[6]= "00000000"; rus_V= new Array(); rus_V[0]= "00000000"; rus_V[1]= "01111100"; rus_V[2]= "01100110"; rus_V[3]= "01111100"; rus_V[4]= "01100110"; rus_V[5]= "01111100"; rus_V[6]= "00000000"; rus_G= new Array(); rus_G[0]= "00000000"; rus_G[1]= "01111110"; rus_G[2]= "01100000"; rus_G[3]= "01100000"; rus_G[4]= "01100000"; rus_G[5]= "01100000"; rus_G[6]= "00000000"; rus_D= new Array(); rus_D[0]= "00000000"; rus_D[1]= "01111100"; rus_D[2]= "01100110"; rus_D[3]= "01100110"; rus_D[4]= "01100110"; rus_D[5]= "01111100"; rus_D[6]= "00000000"; rus_E= new Array(); rus_E[0]= "00000000"; rus_E[1]= "01111110"; rus_E[2]= "01100000"; rus_E[3]= "01111000"; rus_E[4]= "01100000"; rus_E[5]= "01111110"; rus_E[6]= "00000000"; rus_E2= new Array(); rus_E2[0]= "00010100"; rus_E2[1]= "01111110"; rus_E2[2]= "01100000"; rus_E2[3]= "01111000"; rus_E2[4]= "01100000"; rus_E2[5]= "01111110"; rus_E2[6]= "00000000"; rus_ZH= new Array(); rus_ZH[0]= "00000000"; rus_ZH[1]= "01101011"; rus_ZH[2]= "00111110"; rus_ZH[3]= "00011100"; rus_ZH[4]= "00111110"; rus_ZH[5]= "01101011"; rus_ZH[6]= "00000000"; rus_Z= new Array(); rus_Z[0]= "00000000"; rus_Z[1]= "01111100"; rus_Z[2]= "00000110"; rus_Z[3]= "00011100"; rus_Z[4]= "00000110"; rus_Z[5]= "01111100"; rus_Z[6]= "00000000"; rus_I= new Array(); rus_I[0]= "00000000"; rus_I[1]= "01100110"; rus_I[2]= "01100110"; rus_I[3]= "01101110"; rus_I[4]= "01110110"; rus_I[5]= "01100110"; rus_I[6]= "00000000"; rus_J= new Array(); rus_J[0]= "00011000"; rus_J[1]= "01100110"; rus_J[2]= "01100110"; rus_J[3]= "01101110"; rus_J[4]= "01110110"; rus_J[5]= "01100110"; rus_J[6]= "00000000"; rus_K= new Array(); rus_K[0]= "00000000"; rus_K[1]= "01100110"; rus_K[2]= "01101100"; rus_K[3]= "01111000"; rus_K[4]= "01101100"; rus_K[5]= "01100110"; rus_K[6]= "00000000"; rus_L= new Array(); rus_L[0]= "00000000"; rus_L[1]= "00001110"; rus_L[2]= "00010110"; rus_L[3]= "00100110"; rus_L[4]= "01100110"; rus_L[5]= "01100110"; rus_L[6]= "00000000"; rus_M= new Array(); rus_M[0]= "00000000"; rus_M[1]= "01100011"; rus_M[2]= "01110111"; rus_M[3]= "01101011"; rus_M[4]= "01100011"; rus_M[5]= "01100011"; rus_M[6]= "00000000"; rus_N= new Array(); rus_N[0]= "00000000"; rus_N[1]= "01100110"; rus_N[2]= "01100110"; rus_N[3]= "01111110"; rus_N[4]= "01100110"; rus_N[5]= "01100110"; rus_N[6]= "00000000"; rus_O= new Array(); rus_O[0]= "00000000"; rus_O[1]= "00111110"; rus_O[2]= "01100110"; rus_O[3]= "01100110"; rus_O[4]= "01100110"; rus_O[5]= "00111100"; rus_O[6]= "00000000"; rus_P= new Array(); rus_P[0]= "00000000"; rus_P[1]= "01111110"; rus_P[2]= "01100110"; rus_P[3]= "01100110"; rus_P[4]= "01100110"; rus_P[5]= "01100110"; rus_P[6]= "00000000"; rus_R= new Array(); rus_R[0]= "00000000"; rus_R[1]= "01111100"; rus_R[2]= "01100110"; rus_R[3]= "01111110"; rus_R[4]= "01100000"; rus_R[5]= "01100000"; rus_R[6]= "00000000"; rus_S= new Array(); rus_S[0]= "00000000"; rus_S[1]= "00111100"; rus_S[2]= "01100110"; rus_S[3]= "01100000"; rus_S[4]= "01100110"; rus_S[5]= "00111100"; rus_S[6]= "00000000"; rus_T= new Array(); rus_T[0]= "00000000"; rus_T[1]= "01111110"; rus_T[2]= "00011000"; rus_T[3]= "00011000"; rus_T[4]= "00011000"; rus_T[5]= "00011000"; rus_T[6]= "00000000"; rus_Y= new Array(); rus_Y[0]= "00000000"; rus_Y[1]= "01100110"; rus_Y[2]= "00110110"; rus_Y[3]= "00011110"; rus_Y[4]= "00000110"; rus_Y[5]= "00011100"; rus_Y[6]= "00000000"; rus_F= new Array(); rus_F[0]= "00000000"; rus_F[1]= "01111110"; rus_F[2]= "10011001"; rus_F[3]= "10011001"; rus_F[4]= "01111110"; rus_F[5]= "00011000"; rus_F[6]= "00000000"; rus_H= new Array(); rus_H[0]= "00000000"; rus_H[1]= "01100110"; rus_H[2]= "00111100"; rus_H[3]= "00011000"; rus_H[4]= "00111100"; rus_H[5]= "01100110"; rus_H[6]= "00000000"; rus_C= new Array(); rus_C[0]= "00000000"; rus_C[1]= "01100110"; rus_C[2]= "01100110"; rus_C[3]= "01100110"; rus_C[4]= "01100110"; rus_C[5]= "00111011"; rus_C[6]= "00000000"; rus_CH= new Array(); rus_CH[0]= "00000000"; rus_CH[1]= "01100110"; rus_CH[2]= "01100110"; rus_CH[3]= "00111110"; rus_CH[4]= "00000110"; rus_CH[5]= "00000110"; rus_CH[6]= "00000000"; rus_SH= new Array(); rus_SH[0]= "00000000"; rus_SH[1]= "01100011"; rus_SH[2]= "01100011"; rus_SH[3]= "01101011"; rus_SH[4]= "01101011"; rus_SH[5]= "01111111"; rus_SH[6]= "00000000"; rus_SHC= new Array(); rus_SHC[0]= "00000000"; rus_SHC[1]= "11000110"; rus_SHC[2]= "11000110"; rus_SHC[3]= "11010110"; rus_SHC[4]= "11010110"; rus_SHC[5]= "11111011"; rus_SHC[6]= "00000000"; rus_b= new Array(); rus_b[0]= "00000000"; rus_b[1]= "01110000"; rus_b[2]= "00110000"; rus_b[3]= "00111110"; rus_b[4]= "00110011"; rus_b[5]= "00111111"; rus_b[6]= "00000000"; rus_bl= new Array(); rus_bl[0]= "00000000"; rus_bl[1]= "01100011"; rus_bl[2]= "01100011"; rus_bl[3]= "01111011"; rus_bl[4]= "01101011"; rus_bl[5]= "01111011"; rus_bl[6]= "00000000"; rus_b2= new Array(); rus_b2[0]= "00000000"; rus_b2[1]= "01100000"; rus_b2[2]= "01100000"; rus_b2[3]= "01111000"; rus_b2[4]= "01100110"; rus_b2[5]= "01111100"; rus_b2[6]= "00000000"; rus_e= new Array(); rus_e[0]= "00000000"; rus_e[1]= "00111100"; rus_e[2]= "01100110"; rus_e[3]= "00001110"; rus_e[4]= "01100110"; rus_e[5]= "00111100"; rus_e[6]= "00000000"; rus_ju= new Array(); rus_ju[0]= "00000000"; rus_ju[1]= "01100110"; rus_ju[2]= "01101001"; rus_ju[3]= "01111101"; rus_ju[4]= "01101001"; rus_ju[5]= "01100110"; rus_ju[6]= "00000000"; rus_ja= new Array(); rus_ja[0]= "00000000"; rus_ja[1]= "00111110"; rus_ja[2]= "01100110"; rus_ja[3]= "00111110"; rus_ja[4]= "01100110"; rus_ja[5]= "01100110"; rus_ja[6]= "00000000"; sym_0= new Array(); sym_0[0]= "00000000"; sym_0[1]= "00111100"; sym_0[2]= "01100110"; sym_0[3]= "01100110"; sym_0[4]= "01100110"; sym_0[5]= "00111100"; sym_0[6]= "00000000"; sym_1= new Array(); sym_1[0]= "00000000"; sym_1[1]= "00001100"; sym_1[2]= "00111100"; sym_1[3]= "00001100"; sym_1[4]= "00001100"; sym_1[5]= "00001100"; sym_1[6]= "00000000"; sym_2= new Array(); sym_2[0]= "00000000"; sym_2[1]= "00111100"; sym_2[2]= "01100110"; sym_2[3]= "00001100"; sym_2[4]= "00110000"; sym_2[5]= "01111110"; sym_2[6]= "00000000"; sym_3= new Array(); sym_3[0]= "00000000"; sym_3[1]= "00111100"; sym_3[2]= "01000110"; sym_3[3]= "00011100"; sym_3[4]= "01000110"; sym_3[5]= "00111100"; sym_3[6]= "00000000"; sym_4= new Array(); sym_4[0]= "00000000"; sym_4[1]= "01100000"; sym_4[2]= "01100110"; sym_4[3]= "01111110"; sym_4[4]= "00000110"; sym_4[5]= "00000110"; sym_4[6]= "00000000"; sym_5= new Array(); sym_5[0]= "00000000"; sym_5[1]= "01111100"; sym_5[2]= "01100110"; sym_5[3]= "01111100"; sym_5[4]= "00000110"; sym_5[5]= "01111100"; sym_5[6]= "00000000"; sym_6= new Array(); sym_6[0]= "00000000"; sym_6[1]= "00111100"; sym_6[2]= "01100000"; sym_6[3]= "01111100"; sym_6[4]= "01100110"; sym_6[5]= "00111100"; sym_6[6]= "00000000"; sym_7= new Array(); sym_7[0]= "00000000"; sym_7[1]= "01111110"; sym_7[2]= "01100110"; sym_7[3]= "00001100"; sym_7[4]= "00011000"; sym_7[5]= "00110000"; sym_7[6]= "00000000"; sym_8= new Array(); sym_8[0]= "00000000"; sym_8[1]= "00111100"; sym_8[2]= "01100110"; sym_8[3]= "00111100"; sym_8[4]= "01100110"; sym_8[5]= "00111100"; sym_8[6]= "00000000"; sym_9= new Array(); sym_9[0]= "00000000"; sym_9[1]= "00111100"; sym_9[2]= "01100110"; sym_9[3]= "00111110"; sym_9[4]= "00000110"; sym_9[5]= "00111100"; sym_9[6]= "00000000"; sym_space= new Array(); sym_space[0]= "00000000"; sym_space[1]= "00000000"; sym_space[2]= "00000000"; sym_space[3]= "00000000"; sym_space[4]= "00000000"; sym_space[5]= "00000000"; sym_space[6]= "00000000"; sym_vos= new Array(); sym_vos[0]= "00000000"; sym_vos[1]= "00011100"; sym_vos[2]= "00011100"; sym_vos[3]= "00011100"; sym_vos[4]= "00000000"; sym_vos[5]= "00011100"; sym_vos[6]= "00000000"; sym_pyt= new Array(); sym_pyt[0]= "00000000"; sym_pyt[1]= "00111100"; sym_pyt[2]= "01000110"; sym_pyt[3]= "00011100"; sym_pyt[4]= "00000000"; sym_pyt[5]= "00011000"; sym_pyt[6]= "00000000"; sym_zdug= new Array(); sym_zdug[0]= "00000000"; sym_zdug[1]= "00110000"; sym_zdug[2]= "01100000"; sym_zdug[3]= "01000000"; sym_zdug[4]= "01100000"; sym_zdug[5]= "00110000"; sym_zdug[6]= "00000000"; sym_odug= new Array(); sym_odug[0]= "00000000"; sym_odug[1]= "00001100"; sym_odug[2]= "00000110"; sym_odug[3]= "00000010"; sym_odug[4]= "00000110"; sym_odug[5]= "00001100"; sym_odug[6]= "00000000"; sym_osk= new Array(); sym_osk[0]= "00000000"; sym_osk[1]= "01111000"; sym_osk[2]= "01100000"; sym_osk[3]= "01100000"; sym_osk[4]= "01100000"; sym_osk[5]= "01111000"; sym_osk[6]= "00000000"; sym_zsk= new Array(); sym_zsk[0]= "00000000"; sym_zsk[1]= "00011110"; sym_zsk[2]= "00000110"; sym_zsk[3]= "00000110"; sym_zsk[4]= "00000110"; sym_zsk[5]= "00011110"; sym_zsk[6]= "00000000"; sym_dot= new Array(); sym_dot[0]= "00000000"; sym_dot[1]= "00000000"; sym_dot[2]= "00000000"; sym_dot[3]= "00000000"; sym_dot[4]= "00000000"; sym_dot[5]= "00001100"; sym_dot[6]= "00000000"; sym_dot2= new Array(); sym_dot2[0]= "00000000"; sym_dot2[1]= "00000000"; sym_dot2[2]= "00000000"; sym_dot2[3]= "00000000"; sym_dot2[4]= "00001100"; sym_dot2[5]= "00001100"; sym_dot2[6]= "00000000"; sym_tire= new Array(); sym_tire[0]= "00000000"; sym_tire[1]= "00000000"; sym_tire[2]= "00000000"; sym_tire[3]= "01111100"; sym_tire[4]= "00000000"; sym_tire[5]= "00000000"; sym_tire[6]= "00000000"; sym_plus= new Array(); sym_plus[0]= "00000000"; sym_plus[1]= "00000000"; sym_plus[2]= "00011000"; sym_plus[3]= "01111110"; sym_plus[4]= "00011000"; sym_plus[5]= "00000000"; sym_plus[6]= "00000000"; sym_ravno= new Array(); sym_ravno[0]= "00000000"; sym_ravno[1]= "00000000"; sym_ravno[2]= "01111110"; sym_ravno[3]= "00000000"; sym_ravno[4]= "01111110"; sym_ravno[5]= "00000000"; sym_ravno[6]= "00000000"; sym_dot3= new Array(); sym_dot3[0]= "00000000"; sym_dot3[1]= "00000000"; sym_dot3[2]= "00011000"; sym_dot3[3]= "00000000"; sym_dot3[4]= "00011000"; sym_dot3[5]= "00000000"; sym_dot3[6]= "00000000"; function ASCII_ART() { var text_temp = ""; var text_input = ""; var konec = ""; var i_nachalo = 0; var i_stroka = 0; text_input = document.getElementById('ascii_text').value; if (document.getElementById("nap").checked) { while ( konec != "yes" ) { i_nachalo = i_stroka; for (j=0; j<=6; j++) { for (i= i_nachalo; i<= text_input.length; i++) { if (i == text_input.length) konec = "yes"; if (text_input.charAt(i) == "\n") { i_stroka = i+1; break; }; if ((text_input.charAt(i) == "a")||(text_input.charAt(i) == "A")) text_temp = text_temp + ang_A[j]; if ((text_input.charAt(i) == "b")||(text_input.charAt(i) == "B")) text_temp = text_temp + ang_B[j]; if ((text_input.charAt(i) == "c")||(text_input.charAt(i) == "C")) text_temp = text_temp + ang_C[j]; if ((text_input.charAt(i) == "d")||(text_input.charAt(i) == "D")) text_temp = text_temp + ang_D[j]; if ((text_input.charAt(i) == "e")||(text_input.charAt(i) == "E")) text_temp = text_temp + ang_E[j]; if ((text_input.charAt(i) == "f")||(text_input.charAt(i) == "F")) text_temp = text_temp + ang_F[j]; if ((text_input.charAt(i) == "g")||(text_input.charAt(i) == "G")) text_temp = text_temp + ang_G[j]; if ((text_input.charAt(i) == "h")||(text_input.charAt(i) == "H")) text_temp = text_temp + ang_H[j]; if ((text_input.charAt(i) == "i")||(text_input.charAt(i) == "I")) text_temp = text_temp + ang_I[j]; if ((text_input.charAt(i) == "j")||(text_input.charAt(i) == "J")) text_temp = text_temp + ang_J[j]; if ((text_input.charAt(i) == "k")||(text_input.charAt(i) == "K")) text_temp = text_temp + ang_K[j]; if ((text_input.charAt(i) == "l")||(text_input.charAt(i) == "L")) text_temp = text_temp + ang_L[j]; if ((text_input.charAt(i) == "m")||(text_input.charAt(i) == "M")) text_temp = text_temp + ang_M[j]; if ((text_input.charAt(i) == "n")||(text_input.charAt(i) == "N")) text_temp = text_temp + ang_N[j]; if ((text_input.charAt(i) == "o")||(text_input.charAt(i) == "O")) text_temp = text_temp + ang_O[j]; if ((text_input.charAt(i) == "p")||(text_input.charAt(i) == "P")) text_temp = text_temp + ang_P[j]; if ((text_input.charAt(i) == "q")||(text_input.charAt(i) == "Q")) text_temp = text_temp + ang_Q[j]; if ((text_input.charAt(i) == "r")||(text_input.charAt(i) == "R")) text_temp = text_temp + ang_R[j]; if ((text_input.charAt(i) == "s")||(text_input.charAt(i) == "S")) text_temp = text_temp + ang_S[j]; if ((text_input.charAt(i) == "t")||(text_input.charAt(i) == "T")) text_temp = text_temp + ang_T[j]; if ((text_input.charAt(i) == "u")||(text_input.charAt(i) == "U")) text_temp = text_temp + ang_U[j]; if ((text_input.charAt(i) == "v")||(text_input.charAt(i) == "V")) text_temp = text_temp + ang_V[j]; if ((text_input.charAt(i) == "w")||(text_input.charAt(i) == "W")) text_temp = text_temp + ang_W[j]; if ((text_input.charAt(i) == "x")||(text_input.charAt(i) == "X")) text_temp = text_temp + ang_X[j]; if ((text_input.charAt(i) == "y")||(text_input.charAt(i) == "Y")) text_temp = text_temp + ang_Y[j]; if ((text_input.charAt(i) == "z")||(text_input.charAt(i) == "Z")) text_temp = text_temp + ang_Z[j]; if ((text_input.charAt(i) == "а")||(text_input.charAt(i) == "А")) text_temp = text_temp + rus_A[j]; if ((text_input.charAt(i) == "б")||(text_input.charAt(i) == "Б")) text_temp = text_temp + rus_B[j]; if ((text_input.charAt(i) == "в")||(text_input.charAt(i) == "В")) text_temp = text_temp + rus_V[j]; if ((text_input.charAt(i) == "г")||(text_input.charAt(i) == "Г")) text_temp = text_temp + rus_G[j]; if ((text_input.charAt(i) == "д")||(text_input.charAt(i) == "Д")) text_temp = text_temp + rus_D[j]; if ((text_input.charAt(i) == "е")||(text_input.charAt(i) == "Е")) text_temp = text_temp + rus_E[j]; if ((text_input.charAt(i) == "ё")||(text_input.charAt(i) == "Ё")) text_temp = text_temp + rus_E2[j]; if ((text_input.charAt(i) == "ж")||(text_input.charAt(i) == "Ж")) text_temp = text_temp + rus_ZH[j]; if ((text_input.charAt(i) == "з")||(text_input.charAt(i) == "З")) text_temp = text_temp + rus_Z[j]; if ((text_input.charAt(i) == "и")||(text_input.charAt(i) == "И")) text_temp = text_temp + rus_I[j]; if ((text_input.charAt(i) == "й")||(text_input.charAt(i) == "Й")) text_temp = text_temp + rus_J[j]; if ((text_input.charAt(i) == "к")||(text_input.charAt(i) == "К")) text_temp = text_temp + rus_K[j]; if ((text_input.charAt(i) == "л")||(text_input.charAt(i) == "Л")) text_temp = text_temp + rus_L[j]; if ((text_input.charAt(i) == "м")||(text_input.charAt(i) == "М")) text_temp = text_temp + rus_M[j]; if ((text_input.charAt(i) == "н")||(text_input.charAt(i) == "Н")) text_temp = text_temp + rus_N[j]; if ((text_input.charAt(i) == "о")||(text_input.charAt(i) == "О")) text_temp = text_temp + rus_O[j]; if ((text_input.charAt(i) == "п")||(text_input.charAt(i) == "П")) text_temp = text_temp + rus_P[j]; if ((text_input.charAt(i) == "р")||(text_input.charAt(i) == "Р")) text_temp = text_temp + rus_R[j]; if ((text_input.charAt(i) == "с")||(text_input.charAt(i) == "С")) text_temp = text_temp + rus_S[j]; if ((text_input.charAt(i) == "т")||(text_input.charAt(i) == "Т")) text_temp = text_temp + rus_T[j]; if ((text_input.charAt(i) == "у")||(text_input.charAt(i) == "У")) text_temp = text_temp + rus_Y[j]; if ((text_input.charAt(i) == "ф")||(text_input.charAt(i) == "Ф")) text_temp = text_temp + rus_F[j]; if ((text_input.charAt(i) == "х")||(text_input.charAt(i) == "Х")) text_temp = text_temp + rus_H[j]; if ((text_input.charAt(i) == "ц")||(text_input.charAt(i) == "Ц")) text_temp = text_temp + rus_C[j]; if ((text_input.charAt(i) == "ч")||(text_input.charAt(i) == "Ч")) text_temp = text_temp + rus_CH[j]; if ((text_input.charAt(i) == "ш")||(text_input.charAt(i) == "Ш")) text_temp = text_temp + rus_SH[j]; if ((text_input.charAt(i) == "щ")||(text_input.charAt(i) == "Щ")) text_temp = text_temp + rus_SHC[j]; if ((text_input.charAt(i) == "ъ")||(text_input.charAt(i) == "Ъ")) text_temp = text_temp + rus_b[j]; if ((text_input.charAt(i) == "ы")||(text_input.charAt(i) == "Ы")) text_temp = text_temp + rus_bl[j]; if ((text_input.charAt(i) == "ь")||(text_input.charAt(i) == "Ь")) text_temp = text_temp + rus_b2[j]; if ((text_input.charAt(i) == "э")||(text_input.charAt(i) == "Э")) text_temp = text_temp + rus_e[j]; if ((text_input.charAt(i) == "ю")||(text_input.charAt(i) == "Ю")) text_temp = text_temp + rus_ju[j]; if ((text_input.charAt(i) == "я")||(text_input.charAt(i) == "Я")) text_temp = text_temp + rus_ja[j]; if (text_input.charAt(i) == "0") text_temp = text_temp + sym_0[j]; if (text_input.charAt(i) == "1") text_temp = text_temp + sym_1[j]; if (text_input.charAt(i) == "2") text_temp = text_temp + sym_2[j]; if (text_input.charAt(i) == "3") text_temp = text_temp + sym_3[j]; if (text_input.charAt(i) == "4") text_temp = text_temp + sym_4[j]; if (text_input.charAt(i) == "5") text_temp = text_temp + sym_5[j]; if (text_input.charAt(i) == "6") text_temp = text_temp + sym_6[j]; if (text_input.charAt(i) == "7") text_temp = text_temp + sym_7[j]; if (text_input.charAt(i) == "8") text_temp = text_temp + sym_8[j]; if (text_input.charAt(i) == "9") text_temp = text_temp + sym_9[j]; if (text_input.charAt(i) == " ") text_temp = text_temp + sym_space[j]; if (text_input.charAt(i) == "!") text_temp = text_temp + sym_vos[j]; if (text_input.charAt(i) == "?") text_temp = text_temp + sym_pyt[j]; if (text_input.charAt(i) == ")") text_temp = text_temp + sym_zdug[j]; if (text_input.charAt(i) == "(") text_temp = text_temp + sym_odug[j]; if (text_input.charAt(i) == "[") text_temp = text_temp + sym_osk[j]; if (text_input.charAt(i) == "]") text_temp = text_temp + sym_zsk[j]; if (text_input.charAt(i) == ".") text_temp = text_temp + sym_dot[j]; if (text_input.charAt(i) == ",") text_temp = text_temp + sym_dot2[j]; if (text_input.charAt(i) == "-") text_temp = text_temp + sym_tire[j]; if (text_input.charAt(i) == "+") text_temp = text_temp + sym_plus[j]; if (text_input.charAt(i) == "=") text_temp = text_temp + sym_ravno[j]; if (text_input.charAt(i) == ":") text_temp = text_temp + sym_dot3[j]; } text_temp = text_temp + "\n"; } } } if (document.getElementById("nap2").checked) { for (i= 0; i <= text_input.length; i++) { for (j= 0; j<=6; j++) { if ((text_input.charAt(i) == "a")||(text_input.charAt(i) == "A")) text_temp = text_temp + "\n" + ang_A[j]; if ((text_input.charAt(i) == "b")||(text_input.charAt(i) == "B")) text_temp = text_temp + "\n" + ang_B[j]; if ((text_input.charAt(i) == "c")||(text_input.charAt(i) == "C")) text_temp = text_temp + "\n" + ang_C[j]; if ((text_input.charAt(i) == "d")||(text_input.charAt(i) == "D")) text_temp = text_temp + "\n" + ang_D[j]; if ((text_input.charAt(i) == "e")||(text_input.charAt(i) == "E")) text_temp = text_temp + "\n" + ang_E[j]; if ((text_input.charAt(i) == "f")||(text_input.charAt(i) == "F")) text_temp = text_temp + "\n" + ang_F[j]; if ((text_input.charAt(i) == "g")||(text_input.charAt(i) == "G")) text_temp = text_temp + "\n" + ang_G[j]; if ((text_input.charAt(i) == "h")||(text_input.charAt(i) == "H")) text_temp = text_temp + "\n" + ang_H[j]; if ((text_input.charAt(i) == "i")||(text_input.charAt(i) == "I")) text_temp = text_temp + "\n" + ang_I[j]; if ((text_input.charAt(i) == "j")||(text_input.charAt(i) == "J")) text_temp = text_temp + "\n" + ang_J[j]; if ((text_input.charAt(i) == "k")||(text_input.charAt(i) == "K")) text_temp = text_temp + "\n" + ang_K[j]; if ((text_input.charAt(i) == "l")||(text_input.charAt(i) == "L")) text_temp = text_temp + "\n" + ang_L[j]; if ((text_input.charAt(i) == "m")||(text_input.charAt(i) == "M")) text_temp = text_temp + "\n" + ang_M[j]; if ((text_input.charAt(i) == "n")||(text_input.charAt(i) == "N")) text_temp = text_temp + "\n" + ang_N[j]; if ((text_input.charAt(i) == "o")||(text_input.charAt(i) == "O")) text_temp = text_temp + "\n" + ang_O[j]; if ((text_input.charAt(i) == "p")||(text_input.charAt(i) == "P")) text_temp = text_temp + "\n" + ang_P[j]; if ((text_input.charAt(i) == "q")||(text_input.charAt(i) == "Q")) text_temp = text_temp + "\n" + ang_Q[j]; if ((text_input.charAt(i) == "r")||(text_input.charAt(i) == "R")) text_temp = text_temp + "\n" + ang_R[j]; if ((text_input.charAt(i) == "s")||(text_input.charAt(i) == "S")) text_temp = text_temp + "\n" + ang_S[j]; if ((text_input.charAt(i) == "t")||(text_input.charAt(i) == "T")) text_temp = text_temp + "\n" + ang_T[j]; if ((text_input.charAt(i) == "u")||(text_input.charAt(i) == "U")) text_temp = text_temp + "\n" + ang_U[j]; if ((text_input.charAt(i) == "v")||(text_input.charAt(i) == "V")) text_temp = text_temp + "\n" + ang_V[j]; if ((text_input.charAt(i) == "w")||(text_input.charAt(i) == "W")) text_temp = text_temp + "\n" + ang_W[j]; if ((text_input.charAt(i) == "x")||(text_input.charAt(i) == "X")) text_temp = text_temp + "\n" + ang_X[j]; if ((text_input.charAt(i) == "y")||(text_input.charAt(i) == "Y")) text_temp = text_temp + "\n" + ang_Y[j]; if ((text_input.charAt(i) == "z")||(text_input.charAt(i) == "Z")) text_temp = text_temp + "\n" + ang_Z[j]; if ((text_input.charAt(i) == "а")||(text_input.charAt(i) == "А")) text_temp = text_temp + "\n" + rus_A[j]; if ((text_input.charAt(i) == "б")||(text_input.charAt(i) == "Б")) text_temp = text_temp + "\n" + rus_B[j]; if ((text_input.charAt(i) == "в")||(text_input.charAt(i) == "В")) text_temp = text_temp + "\n" + rus_V[j]; if ((text_input.charAt(i) == "г")||(text_input.charAt(i) == "Г")) text_temp = text_temp + "\n" + rus_G[j]; if ((text_input.charAt(i) == "д")||(text_input.charAt(i) == "Д")) text_temp = text_temp + "\n" + rus_D[j]; if ((text_input.charAt(i) == "е")||(text_input.charAt(i) == "Е")) text_temp = text_temp + "\n" + rus_E[j]; if ((text_input.charAt(i) == "ё")||(text_input.charAt(i) == "Ё")) text_temp = text_temp + "\n" + rus_E2[j]; if ((text_input.charAt(i) == "ж")||(text_input.charAt(i) == "Ж")) text_temp = text_temp + "\n" + rus_ZH[j]; if ((text_input.charAt(i) == "з")||(text_input.charAt(i) == "З")) text_temp = text_temp + "\n" + rus_Z[j]; if ((text_input.charAt(i) == "и")||(text_input.charAt(i) == "И")) text_temp = text_temp + "\n" + rus_I[j]; if ((text_input.charAt(i) == "й")||(text_input.charAt(i) == "Й")) text_temp = text_temp + "\n" + rus_J[j]; if ((text_input.charAt(i) == "к")||(text_input.charAt(i) == "К")) text_temp = text_temp + "\n" + rus_K[j]; if ((text_input.charAt(i) == "л")||(text_input.charAt(i) == "Л")) text_temp = text_temp + "\n" + rus_L[j]; if ((text_input.charAt(i) == "м")||(text_input.charAt(i) == "М")) text_temp = text_temp + "\n" + rus_M[j]; if ((text_input.charAt(i) == "н")||(text_input.charAt(i) == "Н")) text_temp = text_temp + "\n" + rus_N[j]; if ((text_input.charAt(i) == "о")||(text_input.charAt(i) == "О")) text_temp = text_temp + "\n" + rus_O[j]; if ((text_input.charAt(i) == "п")||(text_input.charAt(i) == "П")) text_temp = text_temp + "\n" + rus_P[j]; if ((text_input.charAt(i) == "р")||(text_input.charAt(i) == "Р")) text_temp = text_temp + "\n" + rus_R[j]; if ((text_input.charAt(i) == "с")||(text_input.charAt(i) == "С")) text_temp = text_temp + "\n" + rus_S[j]; if ((text_input.charAt(i) == "т")||(text_input.charAt(i) == "Т")) text_temp = text_temp + "\n" + rus_T[j]; if ((text_input.charAt(i) == "у")||(text_input.charAt(i) == "У")) text_temp = text_temp + "\n" + rus_Y[j]; if ((text_input.charAt(i) == "ф")||(text_input.charAt(i) == "Ф")) text_temp = text_temp + "\n" + rus_F[j]; if ((text_input.charAt(i) == "х")||(text_input.charAt(i) == "Х")) text_temp = text_temp + "\n" + rus_H[j]; if ((text_input.charAt(i) == "ц")||(text_input.charAt(i) == "Ц")) text_temp = text_temp + "\n" + rus_C[j]; if ((text_input.charAt(i) == "ч")||(text_input.charAt(i) == "Ч")) text_temp = text_temp + "\n" + rus_CH[j]; if ((text_input.charAt(i) == "ш")||(text_input.charAt(i) == "Ш")) text_temp = text_temp + "\n" + rus_SH[j]; if ((text_input.charAt(i) == "щ")||(text_input.charAt(i) == "Щ")) text_temp = text_temp + "\n" + rus_SHC[j]; if ((text_input.charAt(i) == "ъ")||(text_input.charAt(i) == "Ъ")) text_temp = text_temp + "\n" + rus_b[j]; if ((text_input.charAt(i) == "ы")||(text_input.charAt(i) == "Ы")) text_temp = text_temp + "\n" + rus_bl[j]; if ((text_input.charAt(i) == "ь")||(text_input.charAt(i) == "Ь")) text_temp = text_temp + "\n" + rus_b2[j]; if ((text_input.charAt(i) == "э")||(text_input.charAt(i) == "Э")) text_temp = text_temp + "\n" + rus_e[j]; if ((text_input.charAt(i) == "ю")||(text_input.charAt(i) == "Ю")) text_temp = text_temp + "\n" + rus_ju[j]; if ((text_input.charAt(i) == "я")||(text_input.charAt(i) == "Я")) text_temp = text_temp + "\n" + rus_ja[j]; if (text_input.charAt(i) == "0") text_temp = text_temp + "\n" + sym_0[j]; if (text_input.charAt(i) == "1") text_temp = text_temp + "\n" + sym_1[j]; if (text_input.charAt(i) == "2") text_temp = text_temp + "\n" + sym_2[j]; if (text_input.charAt(i) == "3") text_temp = text_temp + "\n" + sym_3[j]; if (text_input.charAt(i) == "4") text_temp = text_temp + "\n" + sym_4[j]; if (text_input.charAt(i) == "5") text_temp = text_temp + "\n" + sym_5[j]; if (text_input.charAt(i) == "6") text_temp = text_temp + "\n" + sym_6[j]; if (text_input.charAt(i) == "7") text_temp = text_temp + "\n" + sym_7[j]; if (text_input.charAt(i) == "8") text_temp = text_temp + "\n" + sym_8[j]; if (text_input.charAt(i) == "9") text_temp = text_temp + "\n" + sym_9[j]; if (text_input.charAt(i) == " ") text_temp = text_temp + "\n" + sym_space[j]; if (text_input.charAt(i) == "!") text_temp = text_temp + "\n" + sym_vos[j]; if (text_input.charAt(i) == "?") text_temp = text_temp + "\n" + sym_pyt[j]; if (text_input.charAt(i) == ")") text_temp = text_temp + "\n" + sym_zdug[j]; if (text_input.charAt(i) == "(") text_temp = text_temp + "\n" + sym_odug[j]; if (text_input.charAt(i) == "[") text_temp = text_temp + "\n" + sym_osk[j]; if (text_input.charAt(i) == "]") text_temp = text_temp + "\n" + sym_zsk[j]; if (text_input.charAt(i) == ".") text_temp = text_temp + "\n" + sym_dot[j]; if (text_input.charAt(i) == ",") text_temp = text_temp + "\n" + sym_dot2[j]; if (text_input.charAt(i) == "-") text_temp = text_temp + "\n" + sym_tire[j]; if (text_input.charAt(i) == "+") text_temp = text_temp + "\n" + sym_plus[j]; if (text_input.charAt(i) == "=") text_temp = text_temp + "\n" + sym_ravno[j]; if (text_input.charAt(i) == ":") text_temp = text_temp + "\n" + sym_dot3[j]; } } } if (document.getElementById("font1").checked) { text_temp = text_temp.replace(/0/g,"`"); text_temp = text_temp.replace(/1/g,"¶"); document.getElementById('ascii_text2').innerHTML = text_temp; } if (document.getElementById("font2").checked) { text_temp = text_temp.replace(/0/g,"_"); text_temp = text_temp.replace(/1/g,"۩"); document.getElementById('ascii_text2').innerHTML = text_temp; } if (document.getElementById("font3").checked) { text_temp = text_temp.replace(/0/g,"."); text_temp = text_temp.replace(/1/g,"]"); document.getElementById('ascii_text2').innerHTML = text_temp; } if (document.getElementById("font4").checked) { text_temp = text_temp.replace(/0/g,"_"); text_temp = text_temp.replace(/1/g,"$"); document.getElementById('ascii_text2').innerHTML = text_temp; } if (document.getElementById("font5").checked) { text_temp = text_temp.replace(/0/g,"~"); text_temp = text_temp.replace(/1/g,"#"); document.getElementById('ascii_text2').innerHTML = text_temp; } }</script> <B>Направление текста:</B><BR> <INPUT name="nap" id="nap" value="Горизонтально" checked="checked" type="radio">Горизонтально<BR> <INPUT name="nap" id="nap2" value="Вертикально" type="radio">Вертикально<BR> <BR><B>Введите текст:</B><BR><CENTER><TEXTAREA name="ascii_text" id="ascii_text" cols="70" rows="10" wrap="none"></TEXTAREA><BR></CENTER> <BR><B>Выберите шрифт:</B><BR> <INPUT name="font" id="font1" value="Контрастный" checked="checked" type="radio">Контрастный<BR> <INPUT name="font" id="font2" value="Контрастный 2" type="radio">Контрастный 2<BR> <INPUT name="font" id="font3" value="Компактный" type="radio">Компактный<BR> <INPUT name="font" id="font4" value="Шрифт" type="radio">Шрифт<BR> <INPUT name="font" id="font5" value="Шрифт 2" type="radio">Шрифт 2<BR><CENTER><BR><INPUT name="Generate" id="Generate" value="Сгенерировать!" onclick="ASCII_ART()" type="button"> <BR><BR><TEXTAREA name="ascii_text2" id="ascii_text2" cols="100" rows="20" readonly="readonly" wrap="off"></TEXTAREA><BR></CENTER></DIV></DIV><DIV align="right"><script type="text/javascript" src="/js/bookmarks2.js"></script></DIV><!-- </body> -->
 </div>
Код был протестирован на phpBB2 и Invision.
Приятного вам пользования!

Devil Scorpio
 
 

Пол : Мужчина
Сообщения : 112
Возраст : 30
Место обитания : Челябинск
Карма : 1 предупреждение
Благодарности : 13
Регистрация : 2011-11-25

http://umor.sosbb.net/

Вернуться к началу Перейти вниз

Предыдущая тема Следующая тема Вернуться к началу


 
Права доступа к этому форуму:
Вы не можете отвечать на сообщения