Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [JavaScript]zakladki w js czemu tak mam na stronie głównej?
liberator15
post
Post #1





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

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


cześć
czemu mam dwie podstrony na stronie głownej co dopisać?
  1. <html>
  2. <head>
  3. <script type="text/javascript">
  4. function pokaz_ukryj(pokaz, ukryj) {
  5. document.getElementById(pokaz).style.display = "inline";
  6. document.getElementById(ukryj).style.display = "none";
  7. }
  8. </script>
  9. </head>
  10. <body>
  11. <p>
  12.  
  13. <a href="java script:void(pokaz_ukryj('tabela1', 'tabela2'))">Pokaz 1</a>:
  14. <a href="java script:void(pokaz_ukryj('tabela2', 'tabela1'))">Pokaz 2</a>:
  15.  
  16.  
  17. </p>
  18. <table id="tabela1" style="background: red; width: 200px;">
  19. <tr>
  20. <td>1111111111111111111111111111111111111111111</td>
  21. </tr>
  22. </table>
  23. <table id="tabela2" style="background: red; width: 200px;">
  24. <tr>
  25. <td>2222222222222222222222222222222222222222222</td>
  26. </tr>
  27. </table>
  28.  
  29. </body>
  30. </html>
Powód edycji: [Kshyhoo]: bb-code
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 Aktualny czas: 21.08.2025 - 06:18