Solved

Mouse Cordinates in NS4

Posted on 1998-12-02
4
195 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

813 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now