|
Hi..
I have a calendar displayed in a hidden div block... When displayed in IE6 it displays at an offset of about 200px on the X-axis from the current mouse cursor position... Whereas it works fine on IE7..
The js I have used to find the cursor position is as follows:
function getXY(e) {
x = (window.Event) ? e.pageX : event.clientX;
y = (window.Event) ? e.pageY : event.clientY;
var calendarDiv = document.getElementById("calendarDiv");
calendarDiv.style.top= y;
calendarDiv.style.left= x;
}
where calendarDiv is the initially hidden div block containing the calendar... On clicking the calendar image, the calendar is displayed... I was looking for a solution to find the cursor position and display the calendar at that location..
Please help with a solution...
Thanks in advance...
|
|
|
|
|
|
|
// |