Solved

Mouse Cordinates in NS4

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…

911 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

17 Experts available now in Live!

Get 1:1 Help Now