Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [js][css] visibility hidden
hondek
post
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 (IMG:http://forum.php.pl/style_emoticons/default/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 (IMG:http://forum.php.pl/style_emoticons/default/winksmiley.jpg) ale jak klikne ponownie to sie nie zwija... (IMG:http://forum.php.pl/style_emoticons/default/sad.gif)
Proszę o pomoc, z góry dziekuję.
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 23.08.2025 - 16:04