|
Тема
|
Mozilla и onBlurOut
|
|
Автор |
dr.Pix (непознат
) |
Публикувано | 15.09.06 10:50 |
|
Някой знае ли, как може да се постигне този ефект под Mozilla?
Например:
на onBlurOut да се променя цвета на бекграунда на текстово поле (<input type="text")
Благодаря
| |
Тема
|
Re: Mozilla и onBlurOut
[re: dr.Pix]
|
|
Автор |
Flamm () |
Публикувано | 16.09.06 16:25 |
|
Може би нещо такова?
<input type="text" style="background-color: #ff0000;" onfocus="this.style.backgroundColor='#cccccc';" onblur="this.style.backgroundColor='#ff0000';" />
Става и с CSS за Мозила
input[type=text] {background-color:#f00;}
input[type=text]:focus {background-color:#ccc;}
| |
|
|
|
|