![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 99 Pomógł: 2 Dołączył: 27.10.2006 Skąd: CyberRZECZYWISTOŚĆ Ostrzeżenie: (0%) ![]() ![]() |
Mam nazwe elementu: F=document.getElementById('grt');
Jak napisać coś takiego jesli zdarzenie onMouseOver dla ementu F to wtedy element robi cos innego... Kombinuje tak, ale nie wychodzi: Kod if (F.onMouseOver==true) {alert("dziala");}
|
|
|
![]() |
![]()
Post
#2
|
|
![]() Grupa: Zarejestrowani Postów: 2 350 Pomógł: 512 Dołączył: 4.01.2009 Skąd: Wrocław / Świdnica Ostrzeżenie: (0%) ![]() ![]() |
3. sposób - lepszy:
Kod referencja_do_elementu.onmouseout = function(){alert('test');}; 4. sposób - najlepszy: http://www.quirksmode.org/js/eventSimple.html i Kod addEventSimple(element,'click',functionname);
-------------------- |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 14.08.2025 - 17:19 |