🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.javascript
Article #50307

Re: Przeniesienie elementów

#50307
From: nintendo
Date: Thu, 30 Sep 2010 14:31
25 lines
1675 bytes
Użytkownik "Peter May" <peter.may@onet.pl> napisał w wiadomości 
news:i824rn$jn7$1@news.onet.pl...
>W dniu 2010-09-30 13:13, nintendo pisze:
>> Ogólnie chodziło mi o coś takiego:
>>
>> $(function(){
>>      $('.up').click(function(){
>>        $(this).parent().insertBefore($(this).parent().prev());
>>      });
>>
>>      $('.down').click(function(){
>>        $(this).parent().insertAfter($(this).parent().next());
>>      })
>>
>>    });
>
> A do czego Ci tutaj jest potrzebne jQuery?
>
> -- 
> Peter

jQuery jest użyte w skrypcie, więc można zastosowac je również do tej 
funkcji. Jak widać opłaca się - bo nie trzeba pisać tak dużo kodu, aby 
uzyskać dany efekt. 
Technical Details
Message-ID: <i826v5$idf$1@node1.news.atman.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!not-for-mail
References: <i8080a$5nj$1@node1.news.atman.pl> <i81rc3$fip$1@node1.news.atman.pl> <i824rn$jn7$1@news.onet.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!not-for-mail
From: "nintendo" <nintendo@w.pl>
Newsgroups: pl.comp.lang.javascript
Subject: Re: Przeniesienie elementów
Date: Thu, 30 Sep 2010 16:31:10 +0200
Organization: ATMAN
Lines: 27
Message-ID: <i826v5$idf$1@node1.news.atman.pl>
References: <i8080a$5nj$1@node1.news.atman.pl> <i81rc3$fip$1@node1.news.atman.pl> <i824rn$jn7$1@news.onet.pl>
NNTP-Posting-Host: system858917559.mtvk.pl
X-Trace: node1.news.atman.pl 1285857061 18863 85.89.175.59 (30 Sep 2010 14:31:01 GMT)
X-Complaints-To: usenet@atman.pl
NNTP-Posting-Date: Thu, 30 Sep 2010 14:31:01 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3598
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350
X-RFC2646: Format=Flowed; Response
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit