Solved

Mouse Cordinates in NS4

Posted on 1998-12-02
4
196 Views
Last Modified: 2010-04-09
I´m trying to capture the clients mouse x and y cordinates using J-Script combinated with DHML(IE4) or Layers(NS4). I´ve found a way to do so in IE4 (event.clientX) but I haven´t found any way to do so in NS4.
Please help me solve this problem.
0
Comment
Question by:anas2
  • 3
4 Comments
 

Author Comment

by:anas2
ID: 1840158
Edited text of question
0
 

Author Comment

by:anas2
ID: 1840159
Edited text of question
0
 
LVL 28

Accepted Solution

by:
sybe earned 200 total points
ID: 1840160
This code shows the XY coordinated in the window.status in Netscape

<LAYER NAME="Water" TOP=0 LEFT=250 text="#000000" BGCOLOR="#FFFF00" height="99%" width="50%" onMouseOut="window.status=''">
<script>
function MoveEvent(e) {
      window.status=e.pageX + "," + e.pageY;
      return false;
}
</script>
</LAYER>


<script>
// capturing events for the "water" layer

var layWater = document.Water;
layWater.captureEvents(Event.MOUSEMOVE);
layWater.onLoad=resetcapture;

function resetcapture() {
      layWater.captureEvents(Event.MOUSEMOVE);
}
layWater.onMouseMove = mouseWaterMoveHandler;

function mouseWaterMoveHandler(e) {
      layWater.MoveEvent(e);
}
</script>

0
 

Author Comment

by:anas2
ID: 1840161
Thank´s
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
CSS: Making responsive table look nicer 7 31
Else condition 9 23
Can't get js include to work in html file 8 20
Html Table looping 4 26
This article discusses four methods for overlaying images in a container on a web page
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question