Article View: pl.comp.lang.javascript
Article #39762Re: Dynamiczne komunikaty
From: porneL
Date: Tue, 02 May 2006 10:21
Date: Tue, 02 May 2006 10:21
26 lines
1608 bytes
1608 bytes
On Mon, 01 May 2006 17:43:25 +0100, Flipi <flipi.no@spam.poczta.fm> wrote:
> Witam,
>
> Napisałem sobie funkcje która powoduje powjawienie się diva z
> odpowiednim komunikatem po jakiejś akcji użytkownika.
> Funkcja wygląda tak:
> function pokaz_komunikat() {
> var szerokosc=document.body.clientWidth;
> var pozycja_x=(szerokosc/2)-150;
> document.getElementById('komunikat').style.visibility='visible';
> document.getElementById('komunikat').style.left=pozycja_x+'px';
> document.getElementById('komunikat').style.top='200px';
> setTimeout("ukryj_komunikat()",15000)
var k = document.getElementById('komunikat');
k.style.display='block';
setTimeout(function(){k.style.display='none';},15000)
albo lepiej k.parentNode.removeChild(k);
--
* html {redirect-to: url(http://kurs.browsehappy.pl);}
this.author = new Geek("porneL");
Technical Details
Message-ID:
<op.s8w5pyajfux2e6@pornel.net>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mailReferences:
<e35dug$h2i$1@nemesis.news.tpi.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail From: porneL <niusy@pornel.net> Newsgroups: pl.comp.lang.javascript Subject: Re: Dynamiczne komunikaty Date: Tue, 02 May 2006 11:21:24 +0100 Organization: "Portal Gazeta.pl -> http://www.gazeta.pl" Lines: 26 Message-ID: <op.s8w5pyajfux2e6@pornel.net> References: <e35dug$h2i$1@nemesis.news.tpi.pl> NNTP-Posting-Host: pornel.plus.com Mime-Version: 1.0 X-Trace: inews.gazeta.pl 1146565285 9905 84.92.248.233 (2 May 2006 10:21:25 GMT) X-Complaints-To: usenet@agora.pl NNTP-Posting-Date: Tue, 2 May 2006 10:21:25 +0000 (UTC) X-User: pornelspam User-Agent: Opera Mail(BETA2)/9.00 (MacPPC) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit