context menu positioning - help wanted ;)

From: Date: Sat, 17 Aug 2002 11:33:32 +0000
Subject: context menu positioning - help wanted ;)
Groups: php.doc.chm 
Request: Send a blank email to php-doc-chm+get-338@lists.php.net to get a copy of this message
Hi! So while we correct some problems, currently I would like to ask for some JS help in the context menu positioning. I currently use this code to reposition the context menu, as documented to be the right method by Microsoft here: http://msdn.microsoft.com/workshop/author/dhtml/ reference/properties/scrollleft.asp and here http://msdn.microsoft.com/workshop/author/dhtml/ reference/properties/clientx.asp The code is: cm = document.all['contextMenu']; cm.style.left = event.clientX + document.body.scrollLeft; cm.style.top = event.clientY + document.body.scrollTop; cm.style.visibility = "visible"; So the context menu position should be the scrolled offset and the position in the current client area. That seems to be logical... Anyone else with different opinion? A solution would be appreciated... Goba

« previous php.doc.chm (#338) next »