home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2000 June
/
Chip_06_2000.iso
/
internet
/
nd
/
js
/
nav3.js
< prev
Wrap
Text File
|
2000-02-24
|
2KB
|
88 lines
IE4 = (document.all) ? 1 : 0;
NS4 = (document.layers) ? 1 : 0;
ver4 = (IE4 || NS4) ? 1 : 0;
if (ver4)
{
secondImg = "<IMG SRC='images/nav.gif' USEMAP='#on' BORDER='0'>";
arPopups = new Array()
arPopupsUp = new Array()
}
else
{
secondImg = "<IMG SRC='images/nav.gif' USEMAP='#on' BORDER='0'>";
secondImgUp = ""
}
function setBeginEnd(which, left, top, right, bottom)
{
arPopups[which] = new Array();
arPopups[which][0] = left;
arPopups[which][1] = top;
arPopups[which][2] = right;
arPopups[which][3] = bottom;
}
function setBeginEndUp(which, left, top, right, bottom)
{
arPopupsUp[which] = new Array();
arPopupsUp[which][0] = left;
arPopupsUp[which][1] = top;
arPopupsUp[which][2] = right;
arPopupsUp[which][3] = bottom;
}
if (ver4)
{
setBeginEnd(1,62,16,126,38);
setBeginEnd(2,42,42,114,63);
setBeginEnd(3,2,67,106,97);
setBeginEnd(4,28,102,94,123);
setBeginEnd(5,30,128,86,146);
setBeginEnd(6,6,150,76,166);
setBeginEnd(7,20,173,76,201);
setBeginEnd(8,0,209,76,223);
setBeginEnd(9,35,230,75,246);
}
function mapOver(which,on)
{
if (!ver4) { return }
if (IE4)
{
whichEl = document.all.logoover.style;
}
else
{
whichEl = document.logoover;
}
clLeft = arPopups[which][0];
clTop = arPopups[which][1];
clRight = arPopups[which][2];
clBot = arPopups[which][3];
if (!on) { whichEl.visibility = "hidden"; return }
if (NS4)
{
whichEl.clip.left = clLeft;
whichEl.clip.top = clTop;
whichEl.clip.right = clRight;
whichEl.clip.bottom = clBot
}
else
{
whichEl.clip = "rect(" + clTop + " " + clRight + " " + clBot + " " + clLeft + ")";
}
whichEl.visibility = "visible"
}