Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [js/ie] pokazywanie i ukrywanie <tr>, style.display = 'table-row'
w3b
post
Post #1





Grupa: Zarejestrowani
Postów: 14
Pomógł: 0
Dołączył: 11.09.2006

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


Witam

Tak wiec mam sobie kod js, ktory dziala pod kazda przegladarka poprawnie lecz pod ie nie wykonuje sie, kod wyglada nastepujaco:

  1. var i = '0';
  2.  
  3. function openClose(id)
  4. {
  5.  
  6. if(document.getElementById(id).style.display == "table-row"){
  7. i--;
  8. if ( i < 1 )
  9. {
  10. document.getElementById("wym").style.color = 'white';
  11. }
  12. document.getElementById(id).style.display = 'none';
  13. document.getElementById(id + '2').style.display = 'none';
  14. document.getElementById(id + '3').style.display = 'none';
  15. } else {
  16. i++;
  17.  
  18. if ( i > 0 )
  19. {
  20. document.getElementById("wym").style.color = 'red';
  21. }
  22.  
  23. document.getElementById(id).style.display = 'table-row';
  24. document.getElementById(id + '2').style.display = 'table-row';
  25. document.getElementById(id + '3').style.display = 'table-row';
  26.  
  27.  
  28. }
  29. }


Wszystko chyba zostalo poprawnie zrobione i do dolaczone do html'a a mimo to nie rusza:/

Z gory dziekuje,
pozdrawiam
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: 24.08.2025 - 19:24