Логин:

Пароль:

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

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

Слои в Mozille

> Как сделать, чтоб в mozille показывались слои? Данный кусок кода не работает.
>
> function init(){
> if (navigator.appName == "Netscape") {
> layerStyleRef="layer.";
> layerRef="document.layers";
> styleSwitch="";}
> else{layerStyleRef="layer.style."; layerRef="document.all"; styleSwitch=".style";}
> }
> function showLayer(layerName){eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');}
> function hideLayer(layerName){eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');}
>
> В IE,NN,Opere все ОК.

для мозиллы document.getElementById
СообщениеАвторДата
Гость18.09.2001 23:23
Gilmour19.09.2001 08:46
Гость19.09.2001 17:31
Maniac19.09.2001 22:03