Web Hosting Talk







View Full Version : X and Y coordinate using overlin JS class


latheesan
12-02-2005, 02:40 PM
hello,

I came over this javascript class called overlib, so i decided to make use of it in one of my project.

<head>
<script type="text/javascript" src="js/overlib.js"></script>
<script type="text/javascript" src="js/overlib_exclusive.js"></script>
</head>

<body onMouseOver="return overlib('X-Coordinate - '+window.event.x+'
<br> Y-Coordinate - '+window.event.y+'', CAPTION, 'X and Y Coordinates',
EXCLUSIVEOVERRIDE);" onMouseOut="return nd();">
</body>

when i viewed the page in my browser, this is the result:
http://img202.imageshack.us/img202/1134/sh4ti.jpg

if i move around my mouse, the coordinate isnt changing

on the other hand, if i move my mouse to a new location on the screen and then press the F5 (refresh page), the coodinate of X and Y gets updated

so the code is basically working, but*** the x and y coorinates arent getting updated live

anyone good with javascript who can help me plz?