Solved

Mouse Cordinates in NS4

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
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 …
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

762 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

20 Experts available now in Live!

Get 1:1 Help Now