Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Problem z rozwijanym menu., Nie moge umiescic wiecej niz jednego na jednej stronie.
miszczu168
post 10.03.2009, 20:27:56
Post #1





Grupa: Zarejestrowani
Postów: 12
Pomógł: 0
Dołączył: 10.03.2009

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


Otóż mam problem typu iż wstawiam na strone skrypt, jest ok i wszystko dziala ale gdy proboje dolozy 2 taki sam nie dzialaja juz oba. Oto ten skrypt jesli ktos bedzie na tyle mily niech mi wytlumaczy w prosty sposob co napisalem zle albo poprostu przerobi to.


  1. <script LANGUAGE="JavaScript">
  2.  
  3. <!-- Początek
  4. var refer=true;
  5. function combo() {
  6. if (refer) {
  7. document.all.contents.style.visibility="visible";
  8. refer=false;
  9. }
  10. else {
  11. document.all.contents.style.visibility="hidden";
  12. refer=true;
  13. }
  14. }
  15. // Koniec -->
  16. <table align="center">
  17. <tr><td>
  18. <table width="200" border="1" cellspacing="0" cellpadding="0"
  19. bordercolor="#d8d8d8">
  20. <tr>
  21. <td bgcolor="d8d8d8">
  22. <font face="verdana" size="2"> Wybierz link
  23. </td>
  24. <td align="right" width="21">
  25. <img src="gfx/strzalka.gif" name="combo_arrow"
  26. width="21" height="21" alt=""
  27. border="0" onclick="combo()" ></td>
  28. </tr>
  29. <div id="contents" style="position:absolute;
  30. left:?px; top:?px; width:?px;
  31. height:?px; z-index:1; visibility:hidden">
  32. <table width="200" border="1" cellspacing="0" cellpadding="0"
  33. bordercolor="#d8d8d8">
  34. <tr>
  35. <td bgcolor="d8d8d8">
  36.  
  37.  
  38. <a href="rtytrytry" target="_blank"> <img src="gfx/kwadrat.gif" border="0" width="8" height="8"> Strona Główna
  39.  
  40. <a href="tyryr/"
  41. target="_blank"> <img src="gfx/kwadrat.gif" border="0"
  42. width="8" height="8">
  43. Technologie</a><br>
  44.  
  45. <a href="http://yhy" target="_blank"> <img src="gfx/kwadrat.gif" border="0" width="8" height="8"> Forum
  46. Webdiary</a>
  47.  
  48. </td>
  49. </tr>
  50. </td></tr>



Chodzi mi o to zebym mógł wstawic na 1 stronie wiecej niz jedno rozwijane menu

Ten post edytował erix 10.03.2009, 21:08:30
Powód edycji: [erix] witamy na forum, ale staraj się używać bbcode dla listingów. Będzie dużo czytelniej.
Go to the top of the page
+Quote Post
Spawnm
post 10.03.2009, 20:31:59
Post #2





Grupa: Moderatorzy
Postów: 4 069
Pomógł: 497
Dołączył: 11.05.2007
Skąd: Warszawa




a ) daj bbcode
B ) poczytaj o document.getElementById('id')

Ten post edytował Spawnm 10.03.2009, 20:32:12
Go to the top of the page
+Quote Post

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 Wersja Lo-Fi Aktualny czas: 5.07.2025 - 13:50