2020-09-26 16:19:37 +02:00
|
|
|
/* -*- mode: javascript -*-
|
2024-07-28 19:15:51 +02:00
|
|
|
* Legacy code used by old group editor. To be removed.
|
2020-09-26 16:19:37 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
function getMouseXY(e) // works on IE6,FF,Moz,Opera7
|
2024-07-28 19:15:51 +02:00
|
|
|
{
|
2020-09-26 16:19:37 +02:00
|
|
|
if (!e) e = window.event; // works on IE, but not NS (we rely on NS passing us the event)
|
|
|
|
|
|
|
|
if (e)
|
2024-07-28 19:15:51 +02:00
|
|
|
{
|
2020-09-26 16:19:37 +02:00
|
|
|
if (e.pageY)
|
|
|
|
{ // this doesn't work on IE6!! (works on FF,Moz,Opera7)
|
|
|
|
mousey = e.pageY;
|
|
|
|
algor = '[e.pageX]';
|
|
|
|
if (e.clientX || e.clientY) algor += ' [e.clientX] '
|
|
|
|
}
|
|
|
|
else if (e.clientY)
|
|
|
|
{ // works on IE6,FF,Moz,Opera7
|
2024-07-28 19:15:51 +02:00
|
|
|
if ( document.documentElement && document.documentElement.scrollTop )
|
2020-09-26 16:19:37 +02:00
|
|
|
{
|
|
|
|
mousey = e.clientY + document.documentElement.scrollTop;
|
|
|
|
}
|
2024-07-28 19:15:51 +02:00
|
|
|
|
2020-09-26 16:19:37 +02:00
|
|
|
else
|
|
|
|
{
|
|
|
|
mousey = e.clientY + document.body.scrollTop;
|
|
|
|
}
|
|
|
|
algor = '[e.clientX]';
|
|
|
|
if (e.pageX || e.pageY) algor += ' [e.pageX] '
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
var menu_firefox_flicker = false ;
|
|
|
|
|
|
|
|
|
|
|
|
var mousey = 0
|
|
|
|
|
|
|
|
function MenuDisplay(l_element)
|
|
|
|
{
|
|
|
|
getMouseXY()
|
|
|
|
if ( ! menu_firefox_flicker )
|
|
|
|
{
|
|
|
|
l_element.childNodes[1].style.display = 'block' ;
|
|
|
|
if ( mousey > 600 )
|
|
|
|
{
|
|
|
|
l_element.childNodes[1].style.left = '0px' ;
|
|
|
|
l_element.childNodes[1].style.display = 'block' ;
|
|
|
|
l_element.childNodes[1].style.top = - l_element.childNodes[1].offsetHeight + 'px' ;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if ( mousey > 600 )
|
|
|
|
{
|
|
|
|
l_element.childNodes[1].style.top = - l_element.childNodes[1].offsetHeight + 'px' ;
|
|
|
|
}
|
|
|
|
}
|
2024-07-28 19:15:51 +02:00
|
|
|
|
2020-09-26 16:19:37 +02:00
|
|
|
function MenuHide(l_element)
|
|
|
|
{
|
|
|
|
if ( ! menu_firefox_flicker )
|
|
|
|
{
|
|
|
|
l_element.childNodes[1].style.display = 'none'
|
|
|
|
}
|
|
|
|
}
|