home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2001 February
/
Chip_2001-02_cd1.bin
/
chplus
/
tipy
/
web
/
fce2.js
< prev
next >
Wrap
Text File
|
2000-10-16
|
995b
|
52 lines
var Xpos = 0;
var Ypos = 0;
function MoveHandler(evnt) {
if(NS4){
Xpos = evnt.pageX;
Ypos = evnt.pageY;
}
else{
Xpos = event.clientX;
Ypos = event.clientY;
}
}
if (NS4){
window.captureEvents(Event.MOUSEMOVE);
window.onMouseMove = MoveHandler;
}
document.onmousemove = MoveHandler;
function moveLayers() {
if (gotlayers) {
if (NS4) {
document.layers['searchpop'].left = Xpos-400;
document.layers['searchpop'].top = Ypos+5;
} else {
document.all['searchpop'].style.pixelLeft = Xpos-400;
document.all['searchpop'].style.pixelTop = Ypos+5;
}
}
}
function popUp(menuName,on) {
if (gotlayers) {
if (on) {
moveLayers();
if (NS4) {
document.layers[menuName].visibility = "show";
} else {
document.all[menuName].style.visibility = "visible";
}
} else {
if (NS4) {
document.layers[menuName].visibility = "hide";
} else {
document.all[menuName].style.visibility = "hidden";
}
}
}
}