Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> tresc zalezna od wyboru w rozwijanej liscie
1010
post
Post #1





Grupa: Zarejestrowani
Postów: 749
Pomógł: 37
Dołączył: 3.10.2006

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


chce zrobic pole rozwijanej listy i ze jak wybierze pierwsza opcje to pokazuje sie jeden tekst a jak druga to drugi tekst. Niestety nie jestem za mocny w javascript i nie wiem jak sie do tego zabrac...
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
1010
post
Post #2





Grupa: Zarejestrowani
Postów: 749
Pomógł: 37
Dołączył: 3.10.2006

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


  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head><title>Społeczność - Panel kontrolny użytkownika</title>
  3.  
  4.  
  5.  
  6. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
  7. <link rel="stylesheet" type="text/css" media="screen" href="profil/screen.css">
  8. <link rel="alternate" href="http://infonia.pl/spolecznosc" type="application/rss+xml" title="Społeczność">
  9.  
  10.  
  11. <style type="text/css">
  12. body {
  13. margin: -13px;
  14. padding: 0px;
  15. }
  16. A:link {COLOR: #111111; TEXT-DECORATION: none;}
  17. A:visited {COLOR: #111111; TEXT-DECORATION: none;}
  18. A:active {COLOR: #97222B; TEXT-DECORATION: none;}
  19. A:hover {COLOR: #97222B; TEXT-DECORATION: none;}
  20. A: {COLOR: #000000; TEXT-DECORATION: none;}
  21.  
  22. font-family: Verdana,;
  23. font-size: 1;
  24. <script type="text/javascript">
  25.  
  26. window.onload = Laduj;
  27.  
  28. function Laduj()
  29. {
  30. document.forms[0].wybor.onchange = Pokaz;
  31. }
  32. function Pokaz()
  33. {
  34. var nazwa = "id-"+this.value
  35. var blok = document.getElementById(nazwa);
  36.  
  37. if (blok.style.display == 'none')
  38. {
  39. blok.style.display = 'block';
  40. }
  41. else
  42. {
  43. blok.style.display = 'none';
  44. }
  45.  
  46. var elements = document.getElementsByTagName('div');
  47. for (var i = 0;i < elements.length ;i++ )
  48. {
  49. if (elements[i].id)
  50. {
  51. if (elements[i].id != nazwa)
  52. {
  53. elements[i].style.display = "none";
  54. }
  55. }
  56. }
  57. }
  58.  
  59. <div id="wrapper">
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69. <table align="center" cellspacing="19">
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76. <br>
  77. <table align="center" border="0" cellpadding="0" cellspacing="0" width="750">
  78. <tbody><tr>
  79.  
  80. <td rowspan="2" colspan="6" valign="top"><a href="http://infonia.pl/index.php"><img src="profil/infonia_01.gif" alt="informacje" border="0" height="105" width="308"></a></td>
  81. <td rowspan="2" colspan="3" valign="top"></td>
  82. <td colspan="7" height="83" valign="top"><img src="profil/infonia_03.gif" usemap="#Map" alt="menu" border="0" height="83" width="455"></td>
  83. </tr>
  84. <tr>
  85. <td style="background-image: url();" colspan="4" height="22" valign="middle">
  86. <div align="center">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#889ca1" face="verdana" size="1">30 Październik imieniny obchodzi: Zenobii, Edmunda, Przemysława
  87. </td>
  88.  
  89. <td colspan="3" valign="top"></td></tr><tr>
  90.  
  91. </tr>
  92. <tr>
  93. <td height="9" width="6"></td>
  94. <td width="2"></td>
  95. <td width="139"></td>
  96. <td width="148"></td>
  97. <td width="13"></td>
  98.  
  99. <td width="2"></td>
  100. <td width="3"></td>
  101. <td width="1"></td>
  102. <td width="11"></td>
  103. <td width="172"></td>
  104. <td width="12"></td>
  105. <td width="1"></td>
  106. <td width="211"></td>
  107.  
  108. <td width="48"></td>
  109.  
  110. <td width="2"></td>
  111. <td width="9"></td> </tr>
  112.  
  113.  
  114. </tbody></table><map name="Map"><area title="news" alt="news" href="http://news.infonia.pl/" coords="38,16,111,74" shape="rect"><area title="darmowe gry java" alt="darmowe gry java" href="http://gry.infonia.pl/" coords="121,17,189,75" shape="rect"><area title="forum" alt="forum" href="http://infonia.pl/forum" coords="200,17,257,75" shape="rect"><area title="darmowe aliasy wap" alt="darmowe aliasy wap" href="http://4wap.pl/" coords="273,16,336,75" shape="rect"><area title="mapa" alt="mapa portalu" href="http://infonia.pl/mapa" coords="354,13,408,75" shape="rect">
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121. </map>
  122.  
  123.  
  124. <table align="center" cellspacing="17">
  125.  
  126.  
  127.  
  128. <font color="#111111" face="Verdana, Arial, Helvetica, sans-serif" size="1">&nbsp; <a href="http://infonia.pl/" alt="infonia.pl"><b>inf<font color="#eca23e">o</font>nia.pl </b></a> &gt; <a href="http://infonia.pl/spolecznosc" alt="spolecznosc">spolecznosc</a> <i><font color="#a81717">beta</font></i><br><br>
  129.  
  130.  
  131.  
  132. </font><div id="navigation">
  133.  
  134.  
  135.  
  136. <font color="#111111" face="Verdana, Arial, Helvetica, sans-serif" size="1"><a href="wyloguj.php"><img src="profil/edytuj.jpg"> Wyloguj się</a> | <a href="profil.php?action=profil"><img src="profil/edycja.jpg"> Edytuj swoje dane</a> |
  137. <a href="profil.php?action=szukaj"><img src="profil/szukaj.jpg"> Szukaj użytkownika</a> | <a href="profil.php?action=przyjaciele"><img src="profil/przyjaciele.jpg"> Przyjaciele</a> | <img src="profil/rank.png"><a href="profil.php?action=ranking"> Ranking użytkowników</a>
  138.  
  139.  
  140. </font></div>
  141.  
  142.  
  143.  
  144.  
  145.  
  146. <font color="#111111" face="Verdana, Arial, Helvetica, sans-serif" size="1"> <br><br>
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154. </font><div class="table_border"><font color="#111111" face="Verdana, Arial, Helvetica, sans-serif" size="1">Witaj <b>~</b><a href="profil.php?action=uzytkownik&id_uzytkownika=58"><font color="#ff9606"><b>kalinowski</b></font></a> w społeczności infonia.pl!</font><br>
  155.  
  156.  
  157.  
  158.  
  159. </div>
  160.  
  161. <div class="table_border">
  162.  
  163.  
  164. <div>
  165.  
  166.  
  167.  
  168.  
  169. </div>
  170.  
  171.  
  172.  
  173. <font size="1" face="verdana"><span style=background-color:rgb(209,223,232)>Dodawanie <b>pików</b> </span><br><br>
  174. <font color="#219E34">Prosimy o <b>nie wpisywanie http://</b> do linków. Akceptujemy tylko linki bezpośrednie do plików. Nie przyjmujemy uploaderów typu rapidshare itp.</font><br><br>
  175. <table><form action="profil.php?action=dodaj_plik4" method="post" enctype="multipart/form-data"><input type="hidden" name="id_kategorii" value="10"><input type="hidden" name="id_podkategorii" value="14"><tr><td>Nazwa pliku:</td><td><input type="text" name="nazwa"></td></tr><tr><td>Opis:</td><td><textarea name="opis" height="80" width="80"></textarea></td></tr><tr><td>Metoda dodania pliku</td><td><select name="wybor"><option value="1">jeden</option><option value="2">dwa</option></select></td></tr><tr><td>URL:</td><td>http://<input type="text" name="url"></td></tr><tr><td align="center" colspan="2"><input type="submit" value="zapisz"></td></tr></table></center><div id="id-1" style="display: none;">jedyneczka</div><div id="id-2" style="display: none;">dwojeczka</div>
  176.  
  177.  
  178.  
  179.  
  180. <!-- End user_cp_login.html -->
  181.  
  182.  
  183.  
  184.  
  185. </body></html>
  186. </tr></tr></table></font></font></center></div>
  187.  
  188. <center><font face="verdana" size="1"><font color="#111111" face="Verdana, Arial, Helvetica, sans-serif" size="1"><br>Copyright by <b>Inf<font color="orange">o</font>nia.pl</b> - Wszelkie prawa zastrzeżone <br>
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: 15.10.2025 - 02:31