includes/clientside/static/dropdown.js
changeset 80 cb7dde69c301
parent 57 b354deeaa4c4
child 128 01955bf53f96
--- a/includes/clientside/static/dropdown.js	Mon Jul 30 10:46:17 2007 -0400
+++ b/includes/clientside/static/dropdown.js	Wed Aug 01 13:39:27 2007 -0400
@@ -486,9 +486,12 @@
       event = window.event;
     }
     clX = event.clientX;
-    sL  = document.body.scrollLeft;
+    if ( document.body )
+      sL  = document.body.scrollLeft;
+    else
+      sL  = 0;
     mouseX = clX + sL;
-    mouseY = event.clientY + document.body.scrollTop;
+    mouseY = event.clientY + ( document.body ? document.body.scrollTop : 0 );
     return;
   }
   if( typeof(event.clientX) == 'number' )