🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Położenie kursora na stronie

#194
From: visor
Date: Wed, 02 Jan 2002 12:28
44 lines
1747 bytes
O to właśnie mi chodziło.
Wielkie dzięki :)

Pozdrawiam
Visor

> Da sie! Oto przyklad - sciagnalem to zywcem z jednej mojej strony i
dlatego
> moze wymagac malych przerobek, ale powinno wystarczyc.
>
> Pozdrawiam
> ADi
>
> var nn4,ie4,t;
> nn4=(document.layers)?true:false;
> ie4=(document.all)?true:false;
>
> function init(){
>   document.onmousemove = mouseMove;
>   if(nn4) document.captureEvents(Event.MOUSEMOVE);
> }
> window.onload=init;
>
> function mouseMove(e){
>   mousePosition(e);
> }
>
> function mousePosition(e){
>   if(nn4){
>     x=e.pageX;
>     y=e.pageY;
>   }
>   if(ie4){
>     x=event.x+document.body.scrollLeft;
>     y=event.y;
>     if(y<1300){
>       y=event.y+document.body.scrollTop;
>     }
>   }
>   window.status=("x:"+x+"  y:"+y);
> }
>
>
>
Technical Details
Message-ID: <a0uul4$cde$1@news.tpi.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!warszawa.rmf.pl!newsfeed.tpinternet.pl!news.tpi.pl!not-for-mail
References: <a0ut6p$mha$1@news.tpi.pl> <a0utrh$d41$1@flis.man.torun.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!warszawa.rmf.pl!newsfeed.tpinternet.pl!news.tpi.pl!not-for-mail
From: "visor" <oqra@kki.net.pl>
Newsgroups: pl.comp.lang.javascript
Subject: Re: Położenie kursora na stronie
Date: Wed, 2 Jan 2002 13:28:30 +0100
Organization: tp.internet - http://www.tpi.pl/
Lines: 46
Message-ID: <a0uul4$cde$1@news.tpi.pl>
References: <a0ut6p$mha$1@news.tpi.pl> <a0utrh$d41$1@flis.man.torun.pl>
NNTP-Posting-Host: pa101.lapy.sdi.tpnet.pl
X-Trace: news.tpi.pl 1009974756 12718 217.96.130.101 (2 Jan 2002 12:32:36 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Wed, 2 Jan 2002 12:32:36 +0000 (UTC)
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MSMail-Priority: Normal
X-Priority: 3
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit