Форум Flasher.ru

Форум Flasher.ru (http://www.flasher.ru/forum/index.php)
-   DHTML/JS/CSS (http://www.flasher.ru/forum/forumdisplay.php?f=24)
-   -   OnMouseOut <- vs -> OnMouseLeave (http://www.flasher.ru/forum/showthread.php?t=33014)

Sat 12.06.2002 21:20

OnMouseOut <- vs -> OnMouseLeave
 
Кто мне ответит на такой вопрос:
в IE 6.0 работают оба типа события, и OnMouseOut , и OnMouseLeave(оба срабатывают на покидание мыши, вычитал из MSDN), но вот проблема в этом продукте от Дяди Билла событие OnMouseOut срабатывает не всегда так как хотелось бы, а OnMouseLeave, срабатывает так как доктор прописал, в чём между этими событиями разница??? И есть ли событие OnMouseLeave в более ранних версиях ехплорера? :confused:

Infernal 14.06.2002 15:19

onmouseover
onmouseout
есть в любом браузере начиная с версии 4.0 так точно.

остальное советую не юзать

Fouly 19.06.2002 06:38

onmouseleave Event
Fires when the user moves the mouse pointer outside the boundaries of the object.

Remarks
The event fires only if the mouse pointer is inside the boundaries of the object and the user moves the mouse pointer outside the boundaries of the object. If the mouse pointer is currently outside the boundaries of the object, for the event to fire, the user must move the mouse pointer inside the boundaries of the object and then back outside the boundaries of the object.


onmouseout Event
Fires when the user moves the mouse pointer outside the boundaries of the object.

Remarks
When the user moves the mouse over an object, one onmouseover event occurs, followed by one or more onmousemove events as the user moves the mouse pointer within the object. One onmouseout event occurs when the user moves the mouse pointer out of the object.

Это все из того же MSDN.
В каких версиях работает можно посмотреть там же. onmouseleave начиная с 5.5.

Вообще, задавая вопрос старайся избегать формулировок типа "как хотелось бы" и "доктор прописал", если хочешь получить вразумительный ответ.


Часовой пояс GMT +4, время: 09:23.

Copyright © 1999-2008 Flasher.ru. All rights reserved.
Работает на vBulletin®. Copyright ©2000 - 2026, Jelsoft Enterprises Ltd. Перевод: zCarot
Администрация сайта не несёт ответственности за любую предоставленную посетителями информацию. Подробнее см. Правила.