🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Wyrownanie z planowana roznica

#39305
From: Marek Łapiński
Date: Mon, 03 Apr 2006 13:03
21 lines
1714 bytes
Witam
Ten script wyroznuje <div>:
"
function rownosc()
{
var a1w=document.getElementById('a1').offsetHeight;
var a2w=document.getElementById('a2').offsetHeight;
document.getElementById('a1').style.height=(a2w>a1w)? a2w+"px" : 
a1w+"px";
document.getElementById('a2').style.height=(a1w>a2w)? a1w+"px" : 
a2w+"px";
var a2w=document.getElementById('a2').offsetHeight;
var a1w=document.getElementById('a1').offsetHeight;
document.getElementById('a2').style.height=(a1w>a2w)? a1w+"px" : 
a2w+"px";
document.getElementById('a1').style.height=(a2w>a1w)? a2w+"px" : 
a1w+"px";
}
"
Co w min pozmienic by jeden byl krotszy np. 30 pikseli?
pozdrawiam
Technical Details
Message-ID: <e0r6h2$brr$1@nemesis.news.tpi.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.nask.pl!news.nask.org.pl!newsfeed.tpinternet.pl!nemesis.news.tpi.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.nask.pl!news.nask.org.pl!newsfeed.tpinternet.pl!nemesis.news.tpi.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
From: Marek Łapiński <marek.lapinski@data.pl>
Newsgroups: pl.comp.lang.javascript
Subject: Wyrownanie z planowana roznica
Date: Mon, 3 Apr 2006 15:03:49 +0200
Organization: tp.internet - http://www.tpi.pl/
Lines: 23
Message-ID: <e0r6h2$brr$1@nemesis.news.tpi.pl>
NNTP-Posting-Host: 195.205.214.163
X-Trace: nemesis.news.tpi.pl 1144069475 12155 195.205.214.163 (3 Apr 2006 13:04:35 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Mon, 3 Apr 2006 13:04:35 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-Antivirus: avast! (VPS 0614-0, 2006-04-03), Outbound message
X-Antivirus-Status: Clean
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit