🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Rysowanie znacznika na obrazku

#39376
From: Paweł
Date: Mon, 10 Apr 2006 20:48
18 lines
1572 bytes
>>> <div style=position:relative>
>>> <img src=obrazek style=display:block>
>>> <img src=kolko style=position:absolute;top:y;left:x;>
>>> </div>
>>

>> Czy ten obrazek "kolko" można z poziomu JS uczynić niewidocznym ?
>
> document.getElementById('id-obrazka').style.display = 'none';

Zadziałało !

Teraz to już ostatnie pytanie.
W moim przypadku "obrazek" ma 4096x4096 pikseli.
W jaki sposób można na stronie wyświetlić wybrany wycinek tego obrazka ?

Paweł
Technical Details
Message-ID: <e1egb6$k7l$1@atlantis.news.tpi.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.internetia.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
References: <e1e791$o8i$1@nemesis.news.tpi.pl> <op.s7s18tppfux2e6@pornel.net> <e1eb9g$729$1@nemesis.news.tpi.pl> <87r7458b3z.fsf@orion.odyniec.net>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.internetia.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
From: Paweł <pawel.neo@neostrada.pl>
Newsgroups: pl.comp.lang.javascript
Subject: Re: Rysowanie znacznika na obrazku
Date: Mon, 10 Apr 2006 22:48:15 +0200
Organization: tp.internet - http://www.tpi.pl/
Lines: 22
Message-ID: <e1egb6$k7l$1@atlantis.news.tpi.pl>
References: <e1e791$o8i$1@nemesis.news.tpi.pl> <op.s7s18tppfux2e6@pornel.net> <e1eb9g$729$1@nemesis.news.tpi.pl> <87r7458b3z.fsf@orion.odyniec.net>
NNTP-Posting-Host: cor91.neoplus.adsl.tpnet.pl
X-Trace: atlantis.news.tpi.pl 1144702118 20725 83.31.197.91 (10 Apr 2006 20:48:38 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Mon, 10 Apr 2006 20:48:38 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit