Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [js][css] visibility hidden
hondek
post 29.09.2007, 11:01:57
Post #1





Grupa: Zarejestrowani
Postów: 355
Pomógł: 50
Dołączył: 20.08.2007
Skąd: Częstochowa

Ostrzeżenie: (0%)
-----


Chce zrobic chowające się menu, ale nie chce mi sie chowac smile.gif w style.css mam ustwione visibility: hidden;
  1.  function menu(id) {
  2.      if (document.getElementById(id).style.visibility='hidden') {
  3.          document.getElementById(id).style.visibility='visible';
  4.          document.getElementById(id).style.height='100px';
  5.      }
  6.      else {
  7.          document.getElementById(id).style.visibility='hidden';
  8.          document.getElementById(id).style.height='0px';
  9.          return
  10.      }
  11.  }
  12.  


i html :

  1. <div onclick=" menu('ok') " class="menu">Menu</div>


Menu laduje sie schowane, jak klikne to sie rozwija winksmiley.jpg ale jak klikne ponownie to sie nie zwija... sad.gif
Proszę o pomoc, z góry dziekuję.


--------------------
przetwornik yt na czasie :)
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 12.07.2025 - 17:19