🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Problemy przy zmianie stylu display za pomoca JS

#40022
From: porneL
Date: Fri, 19 May 2006 23:09
19 lines
1366 bytes
On Fri, 19 May 2006 16:10:15 +0100, Tomek Banach  
<tbanan_bez_@poczta.onet.pl> wrote:

> Stworzylem taka funkcje
>
>     function pokaz(element) {
>         if (document.getElementById(element).style.display == 'block') {
>             document.getElementById(element).style.display='none';
>         } else {
>             document.getElementById(element).style.display='block';
>         }
>     }

Po prostu zamiast wymuszać jakieś dziwne wartości przywróć domyślną:
.style.display=''

-- 
* html {redirect-to: url(http://kurs.browsehappy.pl);}
this.author = new Geek("porneL");
Technical Details
Message-ID: <op.s9tmlp0ofux2e6@pornel.net>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
References: <e4kn4r$3ih$1@news.onet.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: Problemy przy zmianie stylu display za pomoca JS
Date: Sat, 20 May 2006 00:09:15 +0100
Organization: "Portal Gazeta.pl -> http://www.gazeta.pl"
Lines: 19
Message-ID: <op.s9tmlp0ofux2e6@pornel.net>
References: <e4kn4r$3ih$1@news.onet.pl>
NNTP-Posting-Host: pornel.plus.com
Mime-Version: 1.0
X-Trace: inews.gazeta.pl 1148080156 11237 84.92.248.233 (19 May 2006 23:09:16 GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Fri, 19 May 2006 23:09:16 +0000 (UTC)
X-User: pornelspam
User-Agent: Opera Mail(BETA2)/9.00 (MacPPC)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit