Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: Wiersze w tabeli zmieniające kolor po najechaniu
Forum PHP.pl > Forum > Po stronie przeglądarki
swist666
Mam kod który działa pod IE ale np. pod Operą nie:

  1. <table width="300" border="0">
  2.      <tr>
  3.            <td style="cursor:hand;" onmouseover="javascript:this.background='gfx/strz.gif';" onmouseout="javascript:this.background='';" onclick="javascript:location.href='str1';">
  4.            <a href="str1.php" style="color:#000000;text-decoration : none;">str1</a>
  5.            </td>
  6.      </tr>
  7.      <tr>
  8.            <td style="cursor:hand;" onmouseover="javascript:this.background='gfx/strz.gif';" onmouseout="javascript:this.background='';" onclick="javascript:location.href='str2';">
  9.            <a href="str2.php" style="color:#000000;text-decoration : none;">str2</a>
  10.            </td>
  11.      </tr>
  12.      </tr>
  13.      </table>


Chodzi o to że każdy wiersz powinien zmieniać kolor po najechaniu na niego, w IE działa ale w operze nie reaguje HELP !

P.S. Scieżka jest dobra zresztą wiadomo bo pod IE działa
Paul
  1. <table width="300" border="0">
  2. <tr>
  3. <td style="cursor:hand;" onmouseover="javascript:this.style.backgroundImage=
  4. 'url(gfx/strz.gif)'" onmouseout="javascript:this.style.backgroundImage= ''"
  5.  
  6. onclick="javascript:location.href='str1';">
  7. <a href="str1.php" style="color:#000000;text-decoration : none;">str1</a>
  8. </td>
  9. </tr>
  10. <tr>
  11. <td style="cursor:hand;" onmouseover="javascript:this.style.backgroundImage=
  12. 'url(gfx/strz.gif)';" onmouseout="javascript:this.style.backgroundImage=
  13. ''"onclick="javascript:location.href='str2';">
  14. <a href="str2.php" style="color:#000000;text-decoration : none;">str2</a>
  15. </td>
  16. </tr>
  17. </tr>
swist666
dzieki dziala smile.gif
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.