🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: pl.comp.lang.javascript
2 messages
2 total messages Started by tomek Mon, 02 Apr 2012 20:17
jquery i mouseleave
#51076
Author: tomek
Date: Mon, 02 Apr 2012 20:17
5 lines
991 bytes
Witam, używam metody on i w sumie mam dość dziwny problem ze 
zdarzeniami. Przykład tutaj: http://jsfiddle.net/234nG/10/
Czy ktoś mi może wytlumaczyć, dlaczego zapętliły się zdarzenia 
mouseenter i mouseleave ?
Z góry dziękuję :)
Re: jquery i mouseleave
#51077
Author: Tomek Banach
Date: Mon, 02 Apr 2012 20:55
18 lines
1391 bytes
On 2012-04-02 22:17, tomek wrote:
> Witam, używam metody on i w sumie mam dość dziwny problem ze
> zdarzeniami. Przykład tutaj: http://jsfiddle.net/234nG/10/
> Czy ktoś mi może wytlumaczyć, dlaczego zapętliły się zdarzenia
> mouseenter i mouseleave ?


div ktory dodajesz przykrywa to co jest pod spodem wiec odpala 
mouseleave ktory usuwa tego nowego diva wiec znowu pojawia sie 
mouseenter i tak dalej.

Zmien skrypt na taki i poeksperymentuj
m.style.left = offset.left + 50 +"px";
m.style.top = offset.top+ 50 +"px";


-- 
Tomek
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads