includes/clientside/static/dropdown.js
changeset 80 cb7dde69c301
parent 57 b354deeaa4c4
child 128 01955bf53f96
equal deleted inserted replaced
79:5faff33a6580 80:cb7dde69c301
   484     if(!event)
   484     if(!event)
   485     {
   485     {
   486       event = window.event;
   486       event = window.event;
   487     }
   487     }
   488     clX = event.clientX;
   488     clX = event.clientX;
   489     sL  = document.body.scrollLeft;
   489     if ( document.body )
       
   490       sL  = document.body.scrollLeft;
       
   491     else
       
   492       sL  = 0;
   490     mouseX = clX + sL;
   493     mouseX = clX + sL;
   491     mouseY = event.clientY + document.body.scrollTop;
   494     mouseY = event.clientY + ( document.body ? document.body.scrollTop : 0 );
   492     return;
   495     return;
   493   }
   496   }
   494   if( typeof(event.clientX) == 'number' )
   497   if( typeof(event.clientX) == 'number' )
   495   {
   498   {
   496     mouseX = event.clientX;
   499     mouseX = event.clientX;