Article View: pl.comp.lang.javascript
Article #50313Re: Przeniesienie elementów
From: nintendo
Date: Fri, 01 Oct 2010 10:06
Date: Fri, 01 Oct 2010 10:06
34 lines
1722 bytes
1722 bytes
Użytkownik "NKAB -" <nkab.WYTNIJ@gazeta.pl> napisał w wiadomości news:i84aqa$8mb$1@inews.gazeta.pl... > Może tak? > > <div id="jeden" style="background:red">pierwszy div</div> > <div id="dwa" style="background:orange">drugi div</div> > <div id="trzy" style="background:silver">trzeci div</div><br> > > <script> > zm1a=dwa.style.background; > zm2a=jeden.style.background; > zm1b=dwa.innerHTML; > zm2b=jeden.innerHTML; > > > jeden.style.background=zm1a > jeden.innerHTML=zm1b; > > dwa.style.background=zm2a; > dwa.innerHTML=zm2b; > > </script> > > > Andrzej. > > > -- > Wysłano z serwisu Usenet w portalu Gazeta.pl -> > http://www.gazeta.pl/usenet/ No, to daje tylko "złudzenie" przenoszenia. Podstawiamy kolorki tła. Elementy nie są przenoszone.
Technical Details
Message-ID:
<i84bq1$vug$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-mailReferences:
<i8080a$5nj$1@node1.news.atman.pl> <i84aqa$8mb$1@inews.gazeta.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: Fri, 1 Oct 2010 12:06:04 +0200 Organization: ATMAN Lines: 36 Message-ID: <i84bq1$vug$1@node1.news.atman.pl> References: <i8080a$5nj$1@node1.news.atman.pl> <i84aqa$8mb$1@inews.gazeta.pl> NNTP-Posting-Host: system858917559.mtvk.pl X-Trace: node1.news.atman.pl 1285927553 32720 85.89.175.59 (1 Oct 2010 10:05:53 GMT) X-Complaints-To: usenet@atman.pl NNTP-Posting-Date: Fri, 1 Oct 2010 10:05:53 +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; Original MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit