Article View: pl.comp.lang.javascript
Article #39722Re: pop-up windows
From: Piotrek
Date: Sat, 29 Apr 2006 16:05
Date: Sat, 29 Apr 2006 16:05
23 lines
1631 bytes
1631 bytes
Po najechaniu czy po kliknieciu ?
Jesli po najechaniu to zrob to tak:
<img src="obrazek.jpg" onMouseOver="javascript:openPicture('obrazek.jpg');">
Jesli po kliknieciu:
<img src="obrazek.jpg" onClick="javascript:openPicture('obrazek.jpg');">
Ale wczesnie wstaw skrypt z funkcja openPicture()
<script language="javascript">
function openPicture(picture_name)
{
window.open('http://adres_strony/'+picture_name,'width=550,height=550,toolba
r=no,location=no,menubar=no,resizable=no,scrollbars=yes,status=no'); }
</script>
I to wszystko skrypt w piec minut, jesli przekazesz jesze do funkcji width i
height jako parametry a potem w funkcji window.open dodasz je takze, okno
bedzie mialo takie same rozmiary jak zdjecie
Pozdrawiam Piotrek
Technical Details
Message-ID:
<e302s3$65d$1@news.onet.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!not-for-mailReferences:
<1146324802.629847.290130@j73g2000cwa.googlegroups.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!not-for-mail From: "Piotrek" <p.kwasniewski@op.pl> Newsgroups: pl.comp.lang.javascript Subject: Re: pop-up windows Date: Sat, 29 Apr 2006 18:05:10 +0200 Organization: Onet.pl Lines: 25 Message-ID: <e302s3$65d$1@news.onet.pl> References: <1146324802.629847.290130@j73g2000cwa.googlegroups.com> NNTP-Posting-Host: 82.177.166.84 X-Trace: news.onet.pl 1146326723 6317 82.177.166.84 (29 Apr 2006 16:05:23 GMT) X-Complaints-To: usenet@news.onet.pl NNTP-Posting-Date: Sat, 29 Apr 2006 16:05:23 +0000 (UTC) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Sender: Zv0uGayveu2V0bV1O5oOTCOjBJPEXKOD X-Priority: 3 X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MSMail-Priority: Normal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit