Логин:

Пароль:

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

Общие вопросы

JS and style with Mozilla

Hi all.
There is an JS code for MSIE:
function GetElement( id )
{
return (isNN4) ? document.layers[id] :
(isIE) ? document.all[id].style :
(isNN6) ? document[id] :
(isDOM) ? document.getElementById(id).style : 0;
}
...
styleOBJ = GetElement( 'IdOfElement' );
styleOBJ.background = '#FFDDDD';
It works fine...
But it doesn't work with Mozilla 1.3.
Any ideas?
СообщениеАвторДата
RaD27.03.2003 11:18
Maniac27.03.2003 11:55
Leechy27.03.2003 15:34
Maniac27.03.2003 16:47
RaD27.03.2003 13:47
Maniac27.03.2003 14:05
п?п?я?я?я?28.03.2003 08:33
Maniac28.03.2003 10:03