![]() |
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 2 355 Pomógł: 533 Dołączył: 15.01.2010 Skąd: Bydgoszcz Ostrzeżenie: (0%) ![]() ![]() |
Również serdecznie pozdrawiam (IMG:style_emoticons/default/wink.gif) |
|
|
![]()
Post
#3
|
|
Grupa: Zarejestrowani Postów: 110 Pomógł: 3 Dołączył: 12.03.2011 Skąd: Opole Ostrzeżenie: (0%) ![]() ![]() |
można w tym przypadku poprzez pole style elementu:
Kod if(document.getElementById('alert').style.visibility==='visible'){alert('visible')} else {alert('hidden')} lub tak jak odczytuje styl przeglądarka (pole currentStyle nie we wszystkich jest dostępne): Kod function getCss(obiekt, wlasnosc) {
if (obiekt.currentStyle) { return obiekt.currentStyle[wlasnosc]; } else if (window.getComputedStyle) { return document.defaultView.getComputedStyle(obiekt, null)[wlasnosc]; } } if(getCss(document.getElementById('alert'),'visibility')==='visible'){alert('visible')} else{alert('hidden')} Ten post edytował acidm 9.10.2011, 17:30:05 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 22.08.2025 - 14:45 |