Логин:

Пароль:

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

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

классы

> Как динамически менять свойство класса?
> AddRule не меняет свойство типа display

В 6.0 меняет.

<style>
.x {color:red}
</style>

<button onclick="document.styleSheets[0].addRule('.x','display:none',0)"></button>
<button onclick="document.styleSheets[0].removeRule()"></button>

<p class=x>x</p>
<p>y</p>
<p class=x>x</p>
<p>y</p>
<p class=x>x</p>
<p>y</p>
СообщениеАвторДата
Well03.02.2003 11:09
Well04.02.2003 15:41
Maniac06.02.2003 19:16
Well07.02.2003 08:29
гоша04.02.2003 12:57
Dim03.02.2003 16:59
Well04.02.2003 12:54
Dim04.02.2003 13:47
Well03.02.2003 15:14