Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [js] rozwijalne menu
Taifun
post
Post #1





Grupa: Zarejestrowani
Postów: 222
Pomógł: 2
Dołączył: 10.07.2007

Ostrzeżenie: (10%)
X----


witam.
jak zrobić takie rozwijalne menu jak na http://kabarety.fani.pl/ ?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
b_chmura
post
Post #2





Grupa: Zarejestrowani
Postów: 813
Pomógł: 34
Dołączył: 18.03.2007
Skąd: o stamtąd

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


Kod
<html>
<head>
<script>
function ShowHide(element, button)
{
  if(document.getElementById(element).style.display == '')
  {    
    document.getElementById(element).style.display = 'none';
    document.getElementById(button).innerHTML = 'Pokaż';
  }
  else
  {    
    document.getElementById(element).style.display   = '';
    document.getElementById(button).innerHTML = 'Ukryj';
  }
}
</script>
</head>
<body>
<a onClick="javascript: ShowHide('id_diva', 'id_url');" id="id_url">Pokaż</a>
<br /><br />
<div style="display: none;" id="id_diva">ukrywająca się treść</div>
</body>
</html>


Pisane z palca

Ten post edytował b_chmura 28.10.2007, 23:00:25
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: 7.10.2025 - 22:22