Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: Menu :)
Forum PHP.pl > Forum > Gotowe rozwiązania
Emtec
Siema winksmiley.jpg mam mały problem z java script ktora ma sie polaczyc z php a oto kodzik biggrin.gif

  1. <?php
  2.  
  3. #==============================
  4. # tytul lewego okienka menu
  5. #==============================
  6.  
  7. function left_menu_title_open() {
  8.  
  9. global $color;
  10.  
  11. echo '<table align=\"center\" bgcolor=\"#bbbbbb\" width=\"100%\" cellspacing=\"1\" cellpadding=\"0\" border=\"0\">
  12. <tr>
  13. <td>
  14. <table align=\"center\" width=\"100%\" cellspacing=\"0\" cellpadding=\"2\" border=\"0\" bgcolor=\"#D1D7DC\">
  15. <tr>
  16. <td>
  17. <table align=\"center\" bgcolor=\"#bbbbbb\" width=\"100%\" cellspacing=\"1\" cellpadding=\"0\" border=\"0\">
  18. <tr>
  19. <td>
  20. <table align=\"center\" bgcolor=\"#ECEFF0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">
  21. <tr>
  22. <td>
  23.  
  24. <table align=\"center\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">
  25. <tr>
  26. <td class=\"title\" background=\"theme/'.$color[3].'/gfx/menu_bg.gif\"><b><center>';
  27.  
  28. }
  29.  
  30. function left_menu_title_close() {
  31.  
  32. global $color;
  33.  
  34. echo '</td>
  35. </tr>
  36. <td background=\"theme/'.$color[3].'/gfx/poz.gif\"><img SRC=\"theme/'.$color[3].'/gfx/separ.gif\" width=\"1\" height=\"1\"></td>
  37. </tr>
  38. ';
  39.  
  40. }
  41.  
  42. #==============================
  43. # end: tytul lewego okienka menu
  44. #==============================
  45.  
  46. #==============================
  47. # tresc lewego okienka menu
  48. #==============================
  49.  
  50. function left_menu_text_open() {
  51.  
  52. global $color;
  53.  
  54. echo '<tr>
  55. <td class=\"block\" style=\"background-image: url(theme/'.$color[3].'/gfx/menu_bg_.gif); background-repeat: repeat-x; background-position: bottom\">';
  56.  
  57. }
  58.  
  59. function left_menu_text_close() {
  60.  
  61. global $color;
  62.  
  63. echo '
  64. </td>
  65. </tr>
  66. </table>
  67. </td>
  68. </tr>
  69. </table>
  70. </td>
  71. </tr>
  72. </table>
  73. </td>
  74. </tr>
  75. </table>
  76. </td>
  77. </tr>
  78. </table><img SRC=\"theme/'.$color[3].'/gfx/separ.gif\" width=\"1\" height=\"7\">';
  79.  
  80. }
  81. ?>


Kod
function onColor(blah){blah.style.backgroundColor='#E4E583';}function offColor(blah){blah.style.backgroundColor='#D6D852';}


document.write("<table border='0' width='100%' cellspacing='3' cellpadding='0'>");
document.write("<tr><td width='100%' align='center'>");

document.write("<table border='0' width='100%' cellspacing='1' class='table0' cellpadding='0'>");
document.write("<tr><td class='m'>..::Menu::..");
document.write("</td></tr>");

document.write("<tr><td onmouseover=onColor(this); onmouseout=offColor(this); class=m>");
document.write("<a class=m1 href='index.php'>Strona Główna</a>");
document.write("</td></tr>");
document.write("</table>");



document.write("</td></tr></table>");
I nie wiem jak mam zrobic zeby te menu bylo polaczone z java script smile.gif ... jak cos ten kodzik php jest z jportala smile.gif

zeby zobaczyc jak ten kod java script dziala na html kliknijcieTu .... to jest moja stara strona winksmiley.jpg Z góry dzienki
shizo
Wejdz w Jportala (admina) i w edytor menu a potem mieszaj:P bo menu jest pobierane z bazy danych
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.