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
• Re: Insert Contents of .txt file into a .html page
• Re: Perl regular expression problem.
• Re: Problems in login using WWW::Mechanize
• searching for gd::graph guide
• Re: ARRAY OF HASHMAPS
• Adv. Regexp or Otherwise
• Adv. Regexp or Otherwise
• I need help pleasee! My project is about using I/o Stream
• Help Running VB script in Windows 2003


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