Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Mouse Cordinates in NS4

Posted on 1998-12-02
4
Medium Priority
?
200 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 600 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 does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
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…

916 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