Визуальный редактор

"); board.document.write(TXT); board.document.write(""); board.document.write(""); board.document.close(); return board; } function Save(){ board = Preview(); board.document.execCommand('SaveAs'); board.window.close(); } function PrintPage(){ board = Preview(); board.document.execCommand('Print'); board.window.close(); } function AddHTML(AnCode) { frames.message.focus(); var range = frames.message.document.selection.createRange(); range.pasteHTML(AnCode); range.select(); range.execCommand(); frames.message.focus(); } //Color //old: function OpenColors(cmd) { var newWindowFeatures="dependent=1,Height=210,Width=260"; var board=window.open("","Colors",newWindowFeatures); board.document.open(); board.document.write("\n"); board.document.write(" Выбор цвета \n"); board.document.write("\n"); board.document.write("\n\n") var iColors = 0; var Color = new Array(); for(r=0; r<6; r++) { for(g=0; g<6; g++) { for(b=0; b<6; b++) { iRed = 51*r; iGreen = 51*g; iBlue = 51*b; iRed = iRed.toString(16); iGreen = iGreen.toString(16); iBlue = iBlue.toString(16); if(iRed=="0") iRed = "00"; if(iGreen=="0") iGreen = "00"; if(iBlue=="0") iBlue = "00"; Color[iColors] = "#" + iGreen + iRed + iBlue; iColors++; } } } for(i=0; i<12; i++) { for(j=0; j<18; j++) { board.document.write("\n"); }; board.document.write("\n\n"); }; board.document.write("
Другой цвет #
\n"); board.document.write("\n"); board.document.write("\n"); board.document.close(); } //Link function OpenLink() { if (frames.message.document.selection.type == 'Control'){ var range = frames.message.document.selection.createRange(); if (range.item(0).tagName == 'IMG'){ var img = range.item(0).outerHTML; var newWindowFeatures="dependent=1,Height=120,Width=250"; var board=window.open("","InsertLinks",newWindowFeatures); board.document.open(); board.document.write(""); board.document.write(" Вставка гиперссылки "); board.document.write("\ "); board.document.write("\ "); board.document.write("\ "); board.document.write("\ "); board.document.write("\ "); board.document.write("\ "); board.document.write("\ "); board.document.write("\
Saves the current content in the editor
Removes the selected content and places it into the clipboard.
Copies the selected content into the clipboard.
Inserts content from the clipboard into the editor at the selected position.
Deletes the selected content from the editor.
Undoes the last operation in the editor.
Redoes the last operation in the editor.
Inserts a horizontal rule at the selected position in the editor.
Opens the image window to allow an image to be inserted into the editor at the selected position.
Opens the hyperlink window to allow a hyperlink to be created using the selected content.
Opens the anchor window to allow an anchor to be created using the selected content.
Clears the hyperlink from the selected content.
Opens the help window.
Aligns the selected content to the left.
Centers the selected content.
Aligns the selected content to the right.
Inserts an ordered list.
Inserts an unordered list.
Unindents the selected content.
Indents the selected content.
Bolds the selected text.
Italicizes the selected text.
Underlines the selected text.
Changes the selected text to superscript.
Changes the selected text to subscript.
Changes the foreground color of the selected text.
Changes the background color of the selected text.
Inserts a table into the editor at the selected position.
Inserts a cell into the selected row.
Deletes the selected cell.
Inserts a row above the selected row.
Deletes the selected row.
Inserts a column to the left of the selected cell.
Deletes the selected column.
Splits the selected cell into two cells.
Makes all table borders visible.
'); board.document.close(); } //} //-->
Menu 1  Печать Вырезать Копировать Вставить Удалить Просмотр страницы в браузере Отменить Повторить Вставить гиперссылку Вставить якорь Удалить гиперссылку Новый абзац Новая строка Горизонтальная линия Вставить изображение Бегущая строка Тэг <div></div> Тэг <span></span> Вставить произвольный HTML-код или текст Справка О программе
Menu 2  Жирный Наклонный Подчеркнутый Перечеркнутый Подстрочный знак Надстрочный знак Выбор цвета текста Выбор цвета заливки Выровнить по левому краю Выровнить по центру Выровнить по правому краю Простой список Нумерованный список Внешний отступ Внутренний отступ
Menu 2  Вставить таблицу Вставить ряд Удалить ряд Добавить столбец Удалить столбец Добавить ячейку Удалить ячейку Разбить ячейку Свойства ячейки Показать/Убрать бордюр




Нахально стырено отсюда.