Форум

Открыть Ответить

BB Code - Text area

06.09.2011 10:23:08 06.09.2011 10:24:18

ДОбрый день!

Подскажиет в каком параметре поменять размер окна, в котором пишеться текст, например, комментарий к новости..
стоит BB Code, вот его код (отрывок) из function.php




."<textarea id=\"".$id."\" name=\"".$name."\" cols=\"65\" rows=\"".$rows."\" class=\"".$style."\" OnKeyPress=\"TransliteFeld(this, event)\" OnSelect=\"FieldName(this, this.name)\" OnClick=\"FieldName(this, this.name)\" OnKeyUp=\"FieldName(this, this.name)\">".replace_break($desc)."</textarea>"
		."<div class=\"editor\">";
		if ((defined("ADMIN_FILE") && $con[8] == 1) || (is_user() && $con[8] == 1) || (!is_user() && $con[9] == 1)) $code .= "<div id=\"af".$id."-title\" class=\"editorbutton\" OnMouseOver=\"this.className='editorbuttonover';\" OnMouseOut=\"this.className='editorbutton';\"><img title=\""._EUPLOAD."\" src=\"".img_find("editor/upload")."\"></div>";
		if (!$conf['smilies']) $code .= "<div id=\"sm".$id."-title\" class=\"editorbutton\" OnMouseOver=\"this.className='editorbuttonover';\" OnMouseOut=\"this.className='editorbutton';\"><img src=\"".img_find("editor/smilie")."\" title=\""._ESMILIE."\"></div>";
		$code .= "<div class=\"editorbutton\" OnMouseOver=\"this.className='editorbuttonover';\" OnMouseOut=\"this.className='editorbutton';\" OnClick=\"InsertCode('quote', '', '', '', '".$id."')\"><img src=\"".img_find("editor/quote")."\" title=\""._EQUOTE."\"></div>";
		if (substr(""._LOCALE."", 0, 2) == "ru") {
			$code .= "<div class=\"editorbutton\" OnMouseOver=\"this.className='editorbuttonover';\" OnMouseOut=\"this.className='editorbutton';\" OnClick=\"translateAlltoCyrillic()\"><img src=\"".img_find("editor/rus")."\" title=\""._ERUS."\"></div>"
			."<div class=\"editorbutton\" OnMouseOver=\"this.className='editorbuttonover';\" OnMouseOut=\"this.className='editorbutton';\" OnClick=\"translateAlltoLatin()\"><img src=\"".img_find("editor/eng")."\" title=\""._ELAT."\"></div>"
			."<div class=\"editorbutton\" OnMouseOver=\"this.className='editorbuttonover';\" OnMouseOut=\"this.className='editorbutton';\" OnClick=\"changelanguage()\"><img src=\"".img_find("editor/auto")."\" title=\""._EAUTOTR."\"></div>";
		}



cols=\"65\"
- параметр ничего не меняет


rows=\""
- ставлю цифру 1 - сильно увеличиваеться длина, надо поменьше.

в css


.editor {
	margin: 0px 0px 1px 0px;
	width: 400px;
	height: 21px;
	border: 1px #D1D8EC solid;
	background-image: url(../../images/editor/bg.gif);
	background-repeat: repeat-x;



тоже не меняет...((

os. open slaed 1.2

nick888
  • Группа: Новички
  • Пункты: 226
  • Регистрация: 28.09.2010
  • Пол: Мужчина
  • Из: Краснодарский край
nick888
5

5

<textarea style="width:600px;">

sam07
  • Группа: Посетители
  • Пункты: 772
  • Регистрация: 01.06.2006
  • Пол: Мужчина
  • Из: Моздок
sam07
3.91

3.91

06.09.2011 12:25:08 06.09.2011 12:26:13

<textarea style="width:600px;">


это куда воткнуть?

Длина так будет -
<textarea style="height:200px;">
?

nick888
  • Группа: Новички
  • Пункты: 226
  • Регистрация: 28.09.2010
  • Пол: Мужчина
  • Из: Краснодарский край
nick888
5

5

width - длина
."<textarea id="".$id."" name="".$name."" cols="65" rows="".$rows."" class="".$style."" style='width:600px'

sam07
  • Группа: Посетители
  • Пункты: 772
  • Регистрация: 01.06.2006
  • Пол: Мужчина
  • Из: Моздок
sam07
3.91

3.91

Спасииииибо!! ))

nick888
  • Группа: Новички
  • Пункты: 226
  • Регистрация: 28.09.2010
  • Пол: Мужчина
  • Из: Краснодарский край
nick888
5

5

Открыть Ответить

Хотите опробовать SLAED CMS в действии?

Идеи и предложения
Обратная связь