Article View: pl.comp.lang.javascript
Article #49442Re: prototype observe - problem z zagnieżdżonymi elementami
From: alianora
Date: Fri, 09 Oct 2009 11:33
Date: Fri, 09 Oct 2009 11:33
20 lines
1482 bytes
1482 bytes
alianora pisze:
>> dropImgMouseOver : function(e) {
>> e.stop();
>> //to powinno zalatwic migotanie
>> if (!this.hasClassName('drop_img_hover')) {
>> this.addClassName('drop_img_hover');
>> }
>> },
>
> Dzięki za to. Pozostał drugi problem - podwójne generowanie zdarzenia w
> momencie przesuwania kursora pomiędzy wewnętrznymi DIVami :(
A już nie miga :D
zamiast this.className ='klasa' użyłem addClassName() i
removeClassName() i jest już tak, jak chciałem.
Wielkie dzięki!
Pozdr,
MK
Technical Details
Message-ID:
<han72h$s51$1@inews.gazeta.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mailReferences:
<hamvk2$qsn$1@inews.gazeta.pl> <dbdf1951-b405-42c2-8a34-5407ae7f6e7c@o41g2000yqb.googlegroups.com> <han6jt$q8o$1@inews.gazeta.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail From: alianora <alianora@go2.pl> Newsgroups: pl.comp.lang.javascript Subject: Re: prototype observe - problem z zagnieżdżonymi elementami Date: Fri, 09 Oct 2009 13:33:33 +0200 Organization: "Portal Gazeta.pl -> http://www.gazeta.pl" Lines: 20 Message-ID: <han72h$s51$1@inews.gazeta.pl> References: <hamvk2$qsn$1@inews.gazeta.pl> <dbdf1951-b405-42c2-8a34-5407ae7f6e7c@o41g2000yqb.googlegroups.com> <han6jt$q8o$1@inews.gazeta.pl> NNTP-Posting-Host: 132-to4-8.acn.waw.pl Mime-Version: 1.0 X-Trace: inews.gazeta.pl 1255088018 28833 94.75.107.132 (9 Oct 2009 11:33:38 GMT) X-Complaints-To: usenet@agora.pl NNTP-Posting-Date: Fri, 9 Oct 2009 11:33:38 +0000 (UTC) X-User: alianora In-Reply-To: <han6jt$q8o$1@inews.gazeta.pl> User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit