Все идут лесом... !--

window.event.returnValue = false; }




<!--
function RefreshBody() {
if (document.Compose.plainmo>de.value == 0) {
document.Compose.Body.value = editor.GetHTML();
}
}

function Switch2Text() {
//if(!confirm(" Внимание! Изменение формата сообщения из расширенного в простой удалит текущее форматирование, включая всю вставленную графику. Продолжить?"))
//return;

if (document.Compose.plainmo>de.value == 0) {
//document.Compose.Body.value = editor.GetText();
text = editor.GetHTML();
text = text.replace(/<br\s*\/?>\>nig, "\n");
text = text.replace(/<br\s*\/?>/>ig, "\n");
document.Compose.Body.value = text;

//select plain tab
document.getElementById('tags').style.display = '';
document.getElementById('editmode_plain').style.display = 'block';
document.getElementById('editmode_advanced').style.display = 'none';

//textarea
var texarea = document.Compose.Body;
var par = texarea.parentNode;
texarea.style.visibility = "visible";
texarea.style.position = "relative";

frame = document.getElementById('>htmledit');
frame.style.visibility = "hidden";
frame.setAttribute("width","0");
frame.setAttribute("height","0");

frame.previousSibling.style.visibility = "hidden";
frame.previousSibling.setAttribute("width","0");
frame.previousSibling.style.position = "absolute";
frame.previousSibling.style.top = "0px";
frame.previousSibling.style.left = "0px";

//поменять урл в русской клавиатуре
var keyb = document.getElementById('>keyboard');
keyb.href = "http://mail.ru/kb/";

// IE bug:
// visible text in some cases does not match value
// this action sloves this problem
document.Compose.Body.focus();
}
document.Compose.plainmode.value = '1';
}

function Switch2Html() {
if (document.Compose.plainmo>de.value == 1) {
//editor.SetHTML(document.Compose.Body.value);
editor.SetText(document.Compose.Body.value);

//select plain tab
document.getElementById('tags').style.display = 'none';
document.getElementById('editmode_plain').style.display = 'none';
document.getElementById('editmode_advanced').style.display = 'block';

//textarea
var texarea = document.Compose.Body;
var par = texarea.parentNode;
texarea.style.visibility = "hidden";
texarea.style.position = "absolute";
//texarea.style.top = "0px";
//texarea.style.left = "0px";

frame = document.getElementById('>htmledit');
frame.style.visibility = "visible";
frame.setAttribute("width","100%");
frame.setAttribute("height","300");

frame.previousSibling.style.visibility = "visible";
frame.previousSibling.style.position = "relative";
//frame.previousSibling.style.top = "0px";
//frame.previousSibling.style.left = "0px";

//поменять урл в русской клавиатуре
var keyb = document.getElementById('>keyboard');
keyb.href = "http://mail.ru/kb2/";
}
document.Compose.plainmode.value = '0';
}

var BUTTON_IMAGE_PREFIX = "buttonImage";
var BUTTON_DIV_PREFIX = "buttonDiv";
var BUTTON_PAD1_PREFIX = "buttonPad1";
var BUTTON_PAD2_PREFIX = "buttonPad2";
var buttonid = 0;
var buttonMap = new Object();

function Button
(
caption,
action,
image
)
{
this.caption = caption;
this.action = action;
this.image = "http://img.mail.ru/mail/ru"+image;
this.Instantiate = ButtonInstantiate;
}

function ButtonInstantiate()
{
this.id = buttonid++;;
buttonMap[this.id] = this;
var html = "";
html += '<div id="';
html += BUTTON_DIV_PREFIX;
html += this.id;
html += '" class="bnn"';
html += ' onselectstart="ButtonOnSe>lectStart()"';
html += ' ondragstart="ButtonOnDrag>Start()"';
html += ' onmousedown="ButtonOnMous>eDown(this)"';
html += ' onmouseup="ButtonOnMouseU>p(this)"';
html += ' onmouseout="ButtonOnMouse>Out(this)"';
html += ' onmouseover="ButtonOnMous>eOver(this)"';
html += ' onclick="ButtonOnClick(th>is)"';
html += ' ondblclick="ButtonOnDblCl>ick(this)"';
html += '>';
html += '<img id="';
html += BUTTON_PAD1_PREFIX;
html += this.id;
html += '" width=2 height=2>';
html += '<img id="';
html += BUTTON_IMAGE_PREFIX;
html += this.id;
html += '" src="';
html += this.image;
html += '" title="';
html += this.caption;
html += '" class="Image"';
html += '>';
html += '<img id="';
html += BUTTON_PAD2_PREFIX;
html += this.id;
html += '" width=2 height=2>';
html += '</div>';
document.write(html);
}

function ButtonOnSelectStart()
{
window.event.returnValue = false;
}

function ButtonOnDragStart()
{
window.event.returnValue = false;
}

function ButtonOnMouseDown(element>)
{
if (event.button == 1)
{
var id = element.id.substring(BUTT>ON_DIV_PREFIX.length, element.id.length);
var button = buttonMap[id];
ButtonPushButton(id);
}
}

function ButtonOnMouseUp(element)
{
if (event.button == 1)
{
var id = element.id.substring(BUTT>ON_DIV_PREFIX.length, element.id.length);
var button = buttonMap[id];
ButtonReleaseButton(id);
}
}

function ButtonOnMouseOut(element)
{
var id = element.id.substring(BUTT>ON_DIV_PREFIX.length, element.id.length);
var button = buttonMap[id];
ButtonReleaseButton(id);
document.all[BUTTON_DIV_PREFIX + id].className = "bnn";

}

function ButtonOnMouseOver(element>)
{
var id = element.id.substring(BUTT>ON_DIV_PREFIX.length, element.id.length);
var button = buttonMap[id];
ButtonReleaseButton(id);
document.all[BUTTON_DIV_PREFIX + id].className = "bnmo";
}

function ButtonOnClick(element)
{
var id = element.id.substring(BUTT>ON_DIV_PREFIX.length, element.id.length);
var button = buttonMap[id];
eval(button.action);
}

function ButtonOnDblClick(element)
{
ButtonOnClick(element);
}

function ButtonPushButton(id)
{
document.all[BUTTON_PAD1_PREFIX + id].width = 3;
document.all[BUTTON_PAD1_PREFIX + id].height = 3;
document.all[BUTTON_PAD2_PREFIX + id].width = 1;
document.all[BUTTON_PAD2_PREFIX + id].height = 1;
document.all[BUTTON_DIV_PREFIX + id].className = "bnp";
}

function ButtonReleaseButton(id)
{
document.all[BUTTON_PAD1_PREFIX + id].width = 2;
document.all[BUTTON_PAD1_PREFIX + id].height = 2;
document.all[BUTTON_PAD2_PREFIX + id].width = 2;
document.all[BUTTON_PAD2_PREFIX + id].height = 2;
document.all[BUTTON_DIV_PREFIX + id].className = "bnn";
}


function Editor()
{
this.instantiated = false;
this.Instantiate = EditorInstantiate;
this.GetText = EditorGetText;
this.SetText = EditorSetText;
this.GetHTML = EditorGetHTML;
this.SetHTML = EditorSetHTML;
}

function EditorInstantiate()
{
var html = "";

html += "<table class=menu_font cellpadding=0 cellspacing=0 border=0 width='100%' style=''><tr>";

html += "<td><img src=http://img.mail.ru/0.gif height=1><br>";
html += "<table cellspacing=0 class=sort2><tr>";
html += "<td>";
html += "<select onchange=\"EditorOnFont(t>his)\" class=tah70>";
html += "<option class=\"Heading\">Шрифт</>option>";
html += "<option value=\"Arial\">Arial</op>tion>";
html += "<option value=\"Arial Black\">Arial Black</option>";
html += "<option value=\"Arial Narrow\">Arial Narrow</option>";
html += "<option value=\"Comic Sans MS\">Comic Sans MS</option>";
html += "<option value=\"Courier New\">Courier New</option>";
html += "<option value=\"System\">System</>option>";
html += "<option value=\"Times New Roman\">Times New Roman</option>";
html += "<option value=\"Verdana\">Verdana><option>";
html += "<option value=\"Wingdings\">Wingd>ings<option>";
html += "</select>";
html += "</td>";
html += "<td>";
html += "<select onchange=\"EditorOnSize(t>his)\" class=tah70>";
html += "<option class=\"Heading\">Размер<>option>";
html += "<option value=\"1\">1</option>";
html += "<option value=\"2\">2</option>";
html += "<option value=\"3\">3</option>";
html += "<option value=\"4\">4</option>";
html += "<option value=\"5\">5</option>";
html += "</select>";
html += "</td>";
html += "<td>";
html += "<scr"+"ipt>";
html += "var b4 = new Button(";
html += "\"Цвет текста\",";
html += "\"EditorOnForegroundColo>r()\",";
html += "\"/btn/font_col.gif\"";
html += ");";
html += "b4.Instantiate();";
html += "</scr"+"ipt>";
html += "</td>";
html += "<td>";
html += "<scr"+"ipt>";
html += "var b1 = new Button(";
html += "\"Жирный\",";
html += "\"EditorOnBold()\",";
html += "\"/btn/bold_kn.gif\"";
html += ");";
html += "b1.Instantiate();";
html += "</scr"+"ipt>";
html += "</td>";
html += "<td>";
html += "<scr"+"ipt>";
html += "var b2 = new Button(";
html += "\"Курсив\",";
html += "\"EditorOnItalic()\",";
html += "\"/btn/ital_kn.gif\"";
html += ");";
html += "b2.Instantiate();";
html += "</scr"+"ipt>";
html += "</td>";
html += "<td>";
html += "<scr"+"ipt>";
html += "var b3 = new Button(";
html += "\"Подчеркнутый\",";
html += "\"EditorOnUnderline()\",>";
html += "\"/btn/podch_kn.gif\"";
html += ");";
html += "b3.Instantiate();";
html += "</scr"+"ipt>";
html += "</td>";

html += "<td><img src=/btn/raz_line.gif width=1 height=16></td>";
html += "<td>";
html += "<scr"+"ipt>";
html += "var b6 = new Button(";
html += "\"Выравнивание влево\",";
html += "\"EditorOnAlignLeft()\",>";
html += "\"/btn/al_lef.gif\"";
html += ");";
html += "b6.Instantiate();";
html += "</scr"+"ipt>";
html += "</td>";
html += "<td>";
html += "<scr"+"ipt>";
html += "var b7 = new Button(";
html += "\"Центрирование\",";
html += "\"EditorOnCenter()\",";
html += "\"/btn/al_cent.gif\"";
html += ");";
html += "b7.Instantiate();";
html += "</scr"+"ipt>";
html += "</td>";
html += "<td>";
html += "<scr"+"ipt>";
html += "var b8 = new Button(";
html += "\"Выравнивание вправо\",";
html += "\"EditorOnAlignRight()\">,";
html += "\"/btn/al_rig.gif\"";
html += ");";
html += "b8.Instantiate();";
html += "</scr"+"ipt>";
html += "</td>";
html += "<td><img src=/btn/raz_line.gif width=1 height=16></td>";
html += "<td>";
html += "<scr"+"ipt>";
html += "var b9 = new Button(";
html += "\"Уменьшить отступ\",";
html += "\"EditorOnDecreaseIndent>()\",";
html += "\"/btn/vistup.gif\"";
html += ");";
html += "b9.Instantiate();";
html += "</scr"+"ipt>";
html += "</td>";
html += "<td>";
html += "<scr"+"ipt>";
html += "var b9 = new Button(";
html += "\"Увеличить отступ\",";
html += "\"EditorOnIncreaseIndent>()\",";
html += "\"/btn/otstup.gif\"";
html += ");";
html += "b9.Instantiate();";
html += "</scr"+"ipt>";
html += "</td>";
html += "<td><img src=/btn/raz_line.gif width=1 height=16></td>";
html += "<td>";
html += "<scr"+"ipt>";
html += "var b10 = new Button(";
html += "\"Гиперссылка\",";
html += "\"EditorOnCreateHyperlin>k()\",";
html += "\"/btn/web.gif\"";
html += ");";
html += "b10.Instantiate();";
html += "</scr"+"ipt>";
html += "</td>";
html += "<td>";
html += "<scr"+"ipt>";
html += "var b11 = new Button(";
html += "\"Смайлик\",";
html += "\"AddSmile()\",";
html += "\"/btn/smilee.gif\"";
html += ");";
html += "b11.Instantiate();";
html += "</scr"+"ipt>";
html += "</td>";
html += "<td>";
html += "<scr"+"ipt>";
html += "var b12 = new Button(";
html += "\"Жест\",";
html += "\"AddHand()\",";
html += "\"/btn/up.gif\"";
html += ");";
html += "b12.Instantiate();";
html += "</scr"+"ipt>";
html += "</td></tr></table>";
html += "</tr></table>";

html += "<iframe id=\"htmledit\" width=\"100%\" height=\"300px\" class=wr_let style=''>";

html += "</iframe>";
document.write(html);

html = '<head><style>body, td, p, div {font-family:arial;}</sty>le><head>';
html += '<body class=wr_let>';
html += document.Compose.Body.val>ue;
html += '</body>';
htmledit.document.open();
htmledit.document.write(html);
htmledit.document.close();
htmledit.document.designMode = "on";
htmledit.document.domain="mail.ru";

this.instantiated = true;
}

function EditorGetText()
{
return htmledit.document.body.in>nerText;
}

function EditorSetText(text)
{
text = text.replace(/\n/g, "<br>\n");
htmledit.document.body.innerHTML = text;
}

function EditorGetHTML()
{
EditorCleanHTML();
EditorCleanHTML();
return htmledit.document.body.in>nerHTML;
}

function EditorSetHTML(html)
{
htmledit.document.body.innerHTML = html;
}


function EditorOnBold()
{
EditorFormat("bold");
}

function EditorOnItalic()
{
EditorFormat("italic");
}

function EditorOnUnderline()
{
EditorFormat("underline");
}

function EditorOnForegroundColor()
{
var color = showModalDialog("http://win.mail.ru/btn/ColorSel.html", " ", "font-family:Verdana;font>-size:12;dialogWidth:28em;dialogHeight:21em");
if (color) {
EditorFormat("forecolor", color);
}
else {

htmledit.focus();
}
}

function AddSmile()
{
var smile = showModalDialog("http://img.mail.ru/mail/ru/btn/AddSmile.html", " ", "font-family:Verdana;font>-size:12;dialogWidth:16em;dialogHeight:12em");
htmledit.focus();
if (smile && smile.length) {
var range = htmledit.document.selecti>on.createRange();
range.pasteHTML('<img src="' + smile + '">');
range.select();
}
else {

htmledit.focus();
}
}

function AddHand()
{
var smile = showModalDialog("http://img.mail.ru/mail/ru/btn/AddHand.html", " ", "font-family:Verdana;font>-size:8;dialogWidth:15em;dialogHeight:4em");
htmledit.focus();
if (smile && smile.length) {
var range = htmledit.document.selecti>on.createRange();
range.pasteHTML('<img src="' + smile + '">');
range.select();
}
else {

htmledit.focus();
}
}

function EditorOnAlignLeft()
{
EditorFormat("justifyleft");
}

function EditorOnCenter()
{
EditorFormat("justifycenter");
}

function EditorOnAlignRight()
{
EditorFormat("justifyright");
}

function EditorOnDecreaseIndent()
{
EditorFormat("outdent");
}

function EditorOnIncreaseIndent()
{
EditorFormat("indent");
}

function EditorOnCreateHyperlink()
{
var anchor = EditorGetElement("A", htmledit.document.selecti>on.createRange().parentElement());
var link = prompt("Введите адрес ссылки (например, http://www.mail.ru):", anchor ? anchor.href : "http://");
if (link && link != "http://") {
if (htmledit.document.select>ion.type == "None") {
var range = htmledit.document.selecti>on.createRange();
range.pasteHTML('<A HREF="' + link + '"></A>');
range.select();
}
else {
EditorFormat("CreateLink", link);
}
}
}

function EditorOnFont(select)
{
EditorFormat("fontname", select[select.selectedInd>ex].value);
select.selectedIndex = 0;
}

function EditorOnSize(select)
{
EditorFormat("fontsize", select[select.selectedInd>ex].value);
select.selectedIndex = 0;
}

function EditorFormat(what, opt)
{
htmledit.focus();
if (opt == "removeFormat") {
what = opt;
opt = null;
}
if (opt == null) {
htmledit.document.execCommand(what);
}
else {
htmledit.document.execCommand(what, "", opt);
}
}

function EditorCleanHTML()
{
var fonts = htmledit.document.body.al>l.tags("FONT");
for (var i = fonts.length - 1; i >= 0; i--) {
var font = fonts[i];
if (font.style.backgroundCol>or == "#ffffff") {
font.outerHTML = font.innerHTML;
}
}
}

function EditorGetElement(tagName, start)
{
while (start && start.tagName != tagName) {
start = start.parentElement;
}
return start;
}
//-->



<!--
popup = false;
function add_photo() {
document.domain="mail.ru";
var subj = escape(document.forms['Co>mpose'].elements['Subject'].value);
if (popup) popup.close();
popup = window.open('http://my.foto.mai>l.ru/cgi-bin/addphoto?blogs=1&Title=','add_pict>','width=660,height=660,left='+(screen.width-660)/2+',top='+(screen.height-660)/2+',toolbars=no,scrollbars=yes,resizable=yes,left='+(screen.width-660)/2+',top='+(screen.height-660)/2);
if (popup) popup.focus();
}
videoPopup = false;
function add_video() {
document.domain="mail.ru";
var subj = escape(document.forms['Co>mpose'].elements['Subject'].value);
if (videoPopup) videoPopup.close();
videoPopup = window.open('http://my.video.ma>il.ru/cgi-bin/addvideo?blogs=1&Title=','add_pic>t','width=660,height=660,left='+(screen.width-660)/2+',top='+(screen.height-660)/2+',toolbars=no,scrollbars=yes,resizable=yes,left='+(screen.width-660)/2+',top='+(screen.height-660)/2);
if (videoPopup) videoPopup.focus();
}
-->



<!--

function spell_open(button) {
document.domain="mail.ru";
var posX = 50;
var posY = 50;
var text = '';
if (document.forms['Compose'>].plainmode.value==0) {
text = htmledit.document.body.in>nerHTML;
document.forms['Compose'].elements['HTMLMessage'].value = '1';
}
else {
text = document.forms['Compose']>.elements['Body'].value;
document.forms['Compose'].elements['HTMLMessage'].value = '';
}

document.forms['Compose'].elements['text'].value = text;
//var test = document.forms['Compose']>.elements['test'].value;
//var orfo = document.forms['Compose']>.elements['orfo'].value;

SpellWin=window.open("http://win.mail.ru/cgi-bin/spell?HTMLMessage="+document.forms['Compose'].elements['HTMLMessage'].value, "Orfo",
"menubar=no,resizable=yes,width=535,height=300,toolbar=no,focus=yes,scrollbars=yes," +
"screenX="+posX+",screenY="+posY+",left="+posX+",top="+posY);

}

function fkeyboard() {
document.domain="mail.ru";
if (document.Compose.plainmo>de.value == 0) {/расшир формат
window.open("http://mail.ru/kb2/index.html?form=Compose&text=Body&keymode=2&savemode=3","keyb","height=360,width=610,toolbar=no,menubar=no,location=no,scrollbars=no,focus=yes,top=50,left=50");
}
else {//простой формат
window.open("http://mail.ru/kb/index.html?form=Compose&text=Body&keymode=2&savemode=3","keyb","height=360,width=610,toolbar=no,menubar=no,location=no,scrollbars=no,focus=yes,top=50,left=50");
}
return false;
}
//-->


[quote] Ошибка: Не написан текст записи. [/quote]


Че непонятного ? Лесом я сказал ....




А так же :

Искусство внушать эмоции
Алексей Крехалев Инновация сегодня приветствуется во всем. Возможно, потому что потребитель устал от ярко выраженной рекламы, открытого навязывания услуг и продуктов, а может и потому, что развития чего бы то ни было, требует сама жизнь. Когда классические инструменты маркетинга использованы вдоль и поперек – приходит время новых направлений, нового использования техник, идущих в ногу со временем.


Ещё коротко о том, как раскрутить свой ресурс


Джульетта Геринг-Казакевич


Януш Вишневский "Одиночество в Сети"


Мои взаимные друзья, всего 1828. Вопросы есть?



Hosted by uCoz