Логин:

Пароль:

Форумы
Общие вопросы
Document Object Model
Обсуждаем конференцию
Web Usability (test)

Document Object Model

Есть ли что-то типа insertAfter?

> Нужно вставить узел перед. Как это сделать?

oElement = object.insertAdjacentElement(sWhere, oElement)

sWhere Required.
String that specifies where to insert the HTML element, using one of the following values: beforeBegin Inserts oElement immediately before the object.
afterBegin Inserts oElement after the start of the object but before all other content in the object.
beforeEnd Inserts oElement immediately before the end of the object but after all other content in the object.
afterEnd Inserts oElement immediately after the end of the object.

oElement Required.
Object that specifies the element to be inserted adjacent to the object that invoked the insertAdjacentElement method.

То есть:
[beforeBegin]<oElement>[afterBegin] oElement content [beforeEnd]</oElement>[afterEnd]
СообщениеАвторДата
Axe15.08.2002 15:48
Гость14.01.2003 12:28
Gilmour16.08.2002 06:42
Leechy16.08.2002 14:41
Gilmour16.08.2002 15:27
Leechy16.08.2002 15:56
Gilmour16.08.2002 16:36
Leechy15.08.2002 16:31
Maniac16.08.2002 11:08
Leechy16.08.2002 14:36
Maniac16.08.2002 15:07
MetaWizard24.08.2002 19:20
Leechy16.08.2002 15:53
MetaWizard24.08.2002 19:17
Leechy25.08.2002 15:53
MetaWizard25.08.2002 16:49
crimaniak24.08.2002 17:21
Leechy25.08.2002 15:54
crimaniak25.08.2002 19:02
Leechy25.08.2002 19:32
crimaniak26.08.2002 00:08
Axe15.08.2002 17:24