codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  hidden div block when displayed, displays at an offset of 200px only in IE 6..  veenahari at 10:14 on Monday, May 12, 2008
 

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...









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  ** Site Hacked ** javascript inserted...
•  Losing background/text color when converting HTML to PDF
•  hidden div block when displayed, displays at an offset of 200px only in IE 6..
•  help - sketch
•  Re: Perl Script - File Handling.
•  Open a file from website
•  Re: to open 5 terminals from one and also execute different commands on each terminal
•  read a selected multiple line, those should match some of the values read in the files..
•  Help me please


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2008