Article View: pl.comp.lang.javascript
Article #50298Re: Zapobieganie przewijaniu się strony po kliknięciu w kotwicę
From: porneL
Date: Tue, 28 Sep 2010 15:38
Date: Tue, 28 Sep 2010 15:38
14 lines
1368 bytes
1368 bytes
On Mon, 27 Sep 2010 21:32:24 +0100, wrote:
> On 2010-09-25 10:25, Paweł Arciszewski wrote:
>> <a href="#bla" onclick="location.hash = this.href.replace(/^.*#/, '');
>> return false;">bla</a>
>
> Dzięki za próbę, ale to nie działa - strona się przewija do kotwicy.
Ja to u siebie rozwiązałem brutalnie — usuwając skryptem id z elementów
docelowych :)
--
http://pornel.net
this.author = new Geek("porneL");
Technical Details
Message-ID:
<op.vjq1pswiutk0y1@aimac.local>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mailReferences:
<i7i1nh$dsr$1@inews.gazeta.pl> <8702dc23-af66-4eab-9a62-278c998cd34e@q21g2000prm.googlegroups.com> <i7qv0u$r3c$1@inews.gazeta.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 <niusy4@pornel.net> Newsgroups: pl.comp.lang.javascript Subject: Re: Zapobieganie przewijaniu się strony po kliknięciu w kotwicę Date: Tue, 28 Sep 2010 16:38:06 +0100 Organization: "Portal Gazeta.pl -> http://www.gazeta.pl" Lines: 14 Message-ID: <op.vjq1pswiutk0y1@aimac.local> References: <i7i1nh$dsr$1@inews.gazeta.pl> <8702dc23-af66-4eab-9a62-278c998cd34e@q21g2000prm.googlegroups.com> <i7qv0u$r3c$1@inews.gazeta.pl> NNTP-Posting-Host: 96.95.187.81.in-addr.arpa Mime-Version: 1.0 X-Trace: inews.gazeta.pl 1285688287 17347 81.187.95.96 (28 Sep 2010 15:38:07 GMT) X-Complaints-To: usenet@agora.pl NNTP-Posting-Date: Tue, 28 Sep 2010 15:38:07 +0000 (UTC) X-User: pornelspam User-Agent: Opera Mail/10.70 (MacIntel) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit