Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [Ajax] Zakładki
neversoft
post
Post #1





Grupa: Zarejestrowani
Postów: 30
Pomógł: 0
Dołączył: 24.07.2006

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


Witam,

Interesuje mnie osiągnięcie efektu przełączanych zakłądek jak np. na Gery.pl (Informacje, Film, Muzyka, Gry, Gsm...) Może ktoś mi dać tutorial lub wskazówki z kodem jak to zrobić? Bardo mi na tym zależy więc liczę na Waszą wyrozumiałość.
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
SHiP
post
Post #2





Grupa: Zarejestrowani
Postów: 697
Pomógł: 47
Dołączył: 19.12.2003
Skąd: Lublin

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


  1. <script type="text/javascript" language="JavaScript">
  2. var last = '';
  3. function openClose(id)
  4. {
  5. if(last)
  6. {
  7. if(document.getElementById) {
  8. element = document.getElementById(last);
  9. } else if(document.all) {
  10. element = document.all[last];
  11. } else return;
  12.  
  13. element.style.display = 'none';
  14. }
  15. last = id;
  16.  
  17. if(document.getElementById) {
  18. element = document.getElementById(id);
  19. } else if(document.all) {
  20. element = document.all[id];
  21. } else return;
  22.  
  23. if(element.style) {
  24. if(element.style.display == 'block' ){
  25. element.style.display = 'none';
  26. } else {
  27. element.style.display = 'block';
  28. }
  29. }
  30. }
  31.  


Sprawdz coś takiego ;] Powinno działać pisałem z ręki nie testowałem ;]

Ten post edytował SHiP 5.08.2006, 14:01:35
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: 4.10.2025 - 04:44