-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathcode.js
19 lines (19 loc) · 2.11 KB
/
code.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
b=navigator.appName
addScroll=false;if ((navigator.userAgent.indexOf('MSIE 5')>0) || (navigator.userAgent.indexOf('MSIE 6'))>0) {addScroll = true;}
var off=0;var txt="";var pX=0;var pY=0;document.onmousemove = mouseMove; if (b == "Netscape") {document.captureEvents(Event.MOUSEMOVE)};
function mouseMove(evn) { if (b == "Netscape") { pX=evn.pageX-5; pY=evn.pageY; }else { pX=event.x-5; pY=event.y; }if (b == "Netscape") { if (document.layers['ToolTip'].visibility=='show') {PopTip();}
}else { if (document.all['ToolTip'].style.visibility=='visible') {PopTip();}
}}function PopTip(){if (b == "Netscape") { theLayer = eval('document.layers[\'ToolTip\']'); if ((pX+120)>window.innerWidth)
{ pX=window.innerWidth-150; } theLayer.left=pX+10; theLayer.top=pY+15; theLayer.visibility='show';
} else { theLayer = eval('document.all[\'ToolTip\']');
if (theLayer) { pX=event.x-5; pY=event.y; if (addScroll) { pX=pX+document.body.scrollLeft;
pY=pY+document.body.scrollTop; } if ((pX+120)>document.body.clientWidth)
{ pX=pX-150; } theLayer.style.pixelLeft=pX+10;
theLayer.style.pixelTop=pY+15; theLayer.style.visibility='visible';
} }}function HideTip() { args=HideTip.arguments;
if (b == "Netscape") { document.layers['ToolTip'].visibility='hide'; }
else { document.all['ToolTip'].style.visibility='hidden'; }
}function HideMenu1() { if (b == "Netscape") { document.layers['menu1'].visibility='hide'; } else { document.all['menu1'].style.visibility='hidden'; }}
function ShowMenu1(){if (b == "Netscape") { theLayer = eval('document.layers[\'menu1\']'); theLayer.visibility='show'; } else { theLayer = eval('document.all[\'menu1\']'); theLayer.style.visibility='visible'; }}//
function HideMenu2() { if (b == "Netscape") { document.layers['menu2'].visibility='hide'; } else
{ document.all['menu2'].style.visibility='hidden'; } } function ShowMenu2(){if (b == "Netscape") { theLayer = eval('document.layers[\'menu2\']'); theLayer.visibility='show'; } else { theLayer = eval('document.all[\'menu2\']'); theLayer.style.visibility='visible'; }} // fostata