var x = window.event.clientX;
var y = window.event.clientY;
var x0=document.body.clientWidth;
var y0=document.body.clientHeight;
var x1=document.all.Rmenu.clientWidth;
var y1=document.all.Rmenu.clientHeight; document.all.Rmenu.style.display='';
document.all.Rmenu.style.left=(x0-x-4<x1) ? x-x1-4 : x+2;
document.all.Rmenu.style.top =(y0-y<y1) ? y-y1-4 : y;//Rmenu 对应着你的菜单层的ID
var y = window.event.clientY;
var x0=document.body.clientWidth;
var y0=document.body.clientHeight;
var x1=document.all.Rmenu.clientWidth;
var y1=document.all.Rmenu.clientHeight; document.all.Rmenu.style.display='';
document.all.Rmenu.style.left=(x0-x-4<x1) ? x-x1-4 : x+2;
document.all.Rmenu.style.top =(y0-y<y1) ? y-y1-4 : y;//Rmenu 对应着你的菜单层的ID
window.event.toElement.className 可以得到当前的CSS名等等不一一例举了。
window.event.toElement.className 可以得到当前的CSS名等等不一一例举了。
window.event.toElement.className 可以得到当前的CSS名等等不一一例举了。