perldog
asked on
Dropdown Menu goes behind input box
My dropdown menu "drops-down" behind form elements that have been created with javascript. I don't know JavaScript myself.
How can this be fixed?
Thanks,
Hank
-------------------------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- --
<html><head>
<style>
.ivorybodytable {
font-family: luxi sans, verdana, geneva, arial, helvetica, sans-serif;
font-size: 12px;
background-color: #cfcfc8;
}
.darkbordertablemain {
background-color: #660000;
margin-top: 0px;
margin-bottom: -1px;
}
.darkbordertable {
background-color: #660000;
margin-top: 11px;
margin-bottom: 1px;
}
</style>
<script language="JavaScript" type="text/javascript">
<!--
//
DOM = (document.getElementById) ? 1 : 0;
NS4 = (document.layers) ? 1 : 0;
Konqueror = (navigator.userAgent.index Of("Konque ror") > -1) ? 1 : 0;
Konqueror22 = (navigator.userAgent.index Of("Konque ror 2.2") > -1 || navigator.userAgent.indexO f("Konquer or/2.2") > -1) ? 1 : 0;
Opera = (navigator.userAgent.index Of("Opera" ) > -1) ? 1 : 0;
Opera5 = (navigator.userAgent.index Of("Opera 5") > -1 || navigator.userAgent.indexO f("Opera/5 ") > -1) ? 1 : 0;
Opera6 = (navigator.userAgent.index Of("Opera 6") > -1 || navigator.userAgent.indexO f("Opera/6 ") > -1) ? 1 : 0;
Opera56 = Opera5 || Opera6;
IE = (navigator.userAgent.index Of("MSIE") > -1) ? 1 : 0;
IE = IE && !Opera;
IE5 = IE && DOM;
IE4 = (document.all) ? 1 : 0;
IE4 = IE4 && IE && !DOM;
// -->
</script>
<script language="JavaScript" type="text/javascript">
//
layerLeft = new Array();
layerTop = new Array();
function setVisibility(layer,on) {
if (on) {
if (DOM) {
document.getElementById(la yer).style .visibilit y = "visible";
} else if (NS4) {
document.layers[layer].vis ibility = "show";
} else {
document.all[layer].style. visibility = "visible";
}
} else {
if (DOM) {
document.getElementById(la yer).style .visibilit y = "hidden";
} else if (NS4) {
document.layers[layer].vis ibility = "hide";
} else {
document.all[layer].style. visibility = "hidden";
}
}
}
function isVisible(layer) {
if (DOM) {
return (document.getElementById(l ayer).styl e.visibili ty == "visible");
} else if (NS4) {
return (document.layers[layer].vi sibility == "show");
} else {
return (document.all[layer].style .visibilit y == "visible");
}
}
function setLeft(layer,x) {
layerLeft[layer] = x;
if (DOM && !Opera5) {
document.getElementById(la yer).style .left = x + "px";
} else if (Opera5) {
document.getElementById(la yer).style .left = x;
} else if (NS4) {
document.layers[layer].lef t = x;
} else {
document.all[layer].style. pixelLeft = x;
}
}
function getOffsetLeft(layer) {
var value = 0;
if (DOM) { // Mozilla, Konqueror >= 2.2, Opera >= 5, IE
object = document.getElementById(la yer);
value = object.offsetLeft;
//alert (object.tagName + " --- " + object.offsetLeft);
while (object.tagName != "BODY" && object.offsetParent) {
object = object.offsetParent;
//alert (object.tagName + " --- " + object.offsetLeft);
value += object.offsetLeft;
}
} else if (NS4) {
value = document.layers[layer].pag eX;
} else { // IE4 IS SIMPLY A BASTARD !!!
if (document.all["IE4" + layer]) {
layer = "IE4" + layer;
}
object = document.all[layer];
value = object.offsetLeft;
while (object.tagName != "BODY") {
object = object.offsetParent;
value += object.offsetLeft;
}
}
return (value);
}
function setTop(layer,y) {
layerTop[layer] = y;
if (DOM && !Opera5) {
document.getElementById(la yer).style .top = y + "px";
} else if (Opera5) {
document.getElementById(la yer).style .top = y;
} else if (NS4) {
document.layers[layer].top = y;
} else {
document.all[layer].style. pixelTop = y;
}
}
function getOffsetTop(layer) {
// IE 5.5 and 6.0 behaviour with this function is really strange:
// in some cases, they return a really too large value...
// ... after all, IE is buggy, nothing new
var value = 0;
if (DOM) {
object = document.getElementById(la yer);
value = object.offsetTop;
while (object.tagName != "BODY" && object.offsetParent) {
object = object.offsetParent;
value += object.offsetTop;
}
} else if (NS4) {
value = document.layers[layer].pag eY;
} else { // IE4 IS SIMPLY A BASTARD !!!
if (document.all["IE4" + layer]) {
layer = "IE4" + layer;
}
object = document.all[layer];
value = object.offsetTop;
while (object.tagName != "BODY") {
object = object.offsetParent;
value += object.offsetTop;
}
}
return (value);
}
function setWidth(layer,w) {
if (DOM) {
document.getElementById(la yer).style .width = w;
} else if (NS4) {
// document.layers[layer].wid th = w;
} else {
document.all[layer].style. pixelWidth = w;
}
}
function getOffsetWidth(layer) {
var value = 0;
if (DOM && !Opera56) {
value = document.getElementById(la yer).offse tWidth;
} else if (NS4) {
value = document.layers[layer].doc ument.widt h;
} else if (Opera56) {
value = document.getElementById(la yer).style .pixelWidt h;
} else { // IE4 IS SIMPLY A BASTARD !!!
if (document.all["IE4" + layer]) {
layer = "IE4" + layer;
}
value = document.all[layer].offset Width;
}
return (value);
}
function setHeight(layer,h) { // unused, not tested
if (DOM) {
document.getElementById(la yer).style .height = h;
} else if (NS4) {
// document.layers[layer].hei ght = h;
} else {
document.all[layer].style. pixelHeigh t = h;
}
}
function getOffsetHeight(layer) {
var value = 0;
if (DOM && !Opera56) {
value = document.getElementById(la yer).offse tHeight;
} else if (NS4) {
value = document.layers[layer].doc ument.heig ht;
} else if (Opera56) {
value = document.getElementById(la yer).style .pixelHeig ht;
} else { // IE4 IS SIMPLY A BASTARD !!!
if (document.all["IE4" + layer]) {
layer = "IE4" + layer;
}
value = document.all[layer].offset Height;
}
return (value);
}
function getWindowWidth() {
var value = 0;
if ((DOM && !IE) || NS4 || Konqueror || Opera) {
value = top.innerWidth;
// } else if (NS4) {
// value = document.width;
} else { // IE
if (document.documentElement && document.documentElement.c lientWidth ) {
value = document.documentElement.c lientWidth ;
} else if (document.body) {
value = document.body.clientWidth;
}
}
if (isNaN(value)) {
value = top.innerWidth;
}
return (value);
}
function getWindowXOffset() {
var value = 0;
if ((DOM && !IE) || NS4 || Konqueror || Opera) {
value = window.pageXOffset;
} else { // IE
if (document.documentElement && document.documentElement.s crollLeft) {
value = document.documentElement.s crollLeft;
} else if (document.body) {
value = document.body.scrollLeft;
}
}
return (value);
}
function getWindowHeight() {
var value = 0;
if ((DOM && !IE) || NS4 || Konqueror || Opera) {
value = top.innerHeight;
} else { // IE
if (document.documentElement && document.documentElement.c lientHeigh t) {
value = document.documentElement.c lientHeigh t;
} else if (document.body) {
value = document.body.clientHeight ;
}
}
if (isNaN(value)) {
value = top.innerHeight;
}
return (value);
}
function getWindowYOffset() {
var value = 0;
if ((DOM && !IE) || NS4 || Konqueror || Opera) {
value = window.pageYOffset;
} else { // IE
if (document.documentElement && document.documentElement.s crollTop) {
value = document.documentElement.s crollTop;
} else if (document.body) {
value = document.body.scrollTop;
}
}
return (value);
}
</script>
<script language="JavaScript" type="text/javascript">
//
useTimeouts = 1;
timeoutLength = 1000; // time in ms; not significant if useTimeouts = 0;
shutdownOnClick = 0;
loaded = 0;
layersMoved = 0;
layerPoppedUp = "";
timeoutFlag = 0;
if (Opera56 || IE4) {
useTimeouts = 0;
}
if (NS4 || Opera56 || IE4) {
shutdownOnClick = 1;
}
currentY = 0;
function grabMouse(e) { // for NS4
currentY = e.pageY;
}
if (NS4) {
document.captureEvents(Eve nt.MOUSEDO WN | Event.MOUSEMOVE);
document.onmousemove = grabMouse;
}
function seeThroughElements(show) {
if (show) {
foobar = "visible";
} else {
foobar = "hidden";
}
for (i=0; i<toBeHidden.length; i++) {
toBeHidden[i].style.visibi lity = foobar;
}
}
function shutdown() {
for (i=0; i<numl; i++) {
LMPopUpL(listl[i], false);
}
layerPoppedUp = "";
if (Konqueror || IE5) {
seeThroughElements(true);
}
}
if (shutdownOnClick) {
if (NS4) {
document.onmousedown = shutdown;
} else {
document.onclick = shutdown;
}
}
function setLMTO() {
if (useTimeouts) {
timeoutFlag = setTimeout('shutdown()', timeoutLength);
}
}
function clearLMTO() {
if (useTimeouts) {
clearTimeout(timeoutFlag);
}
}
function moveLayerX(menuName) {
if (!loaded || (isVisible(menuName) && menuName != layerPoppedUp)) {
return;
}
if (father[menuName] != "") {
if (!Opera5 && !IE4) {
width0 = lwidth[father[menuName]];
width1 = lwidth[menuName];
} else if (Opera5) {
// Opera 5 stupidly and exaggeratedly overestimates layers widths
// hence we consider a default value equal to $abscissaStep
width0 = abscissaStep;
width1 = abscissaStep;
} else if (IE4) {
width0 = getOffsetWidth(father[menu Name]);
width1 = getOffsetWidth(menuName);
}
onLeft = getOffsetLeft(father[menuN ame]) - width1 + menuLeftShift;
onRight = getOffsetLeft(father[menuN ame]) + width0 - menuRightShift;
windowWidth = getWindowWidth();
windowXOffset = getWindowXOffset();
// if (NS4 && !DOM) {
// windowXOffset = 0;
// }
if (onLeft < windowXOffset && onRight + width1 > windowWidth + windowXOffset) {
if (onRight + width1 - windowWidth - windowXOffset > windowXOffset - onLeft) {
onLeft = windowXOffset;
} else {
onRight = windowWidth + windowXOffset - width1;
}
}
if (back[father[menuName]]) {
if (onLeft < windowXOffset) {
back[menuName] = 0;
} else {
back[menuName] = 1;
}
} else {
//alert(onRight + " - " + width1 + " - " + windowWidth + " - " + windowXOffset);
if (onRight + width1 > windowWidth + windowXOffset) {
back[menuName] = 1;
} else {
back[menuName] = 0;
}
}
if (back[menuName]) {
setLeft(menuName, onLeft);
} else {
setLeft(menuName, onRight);
}
}
moveLayerY(menuName); // workaround needed for Mozilla < 1.4 for MS Windows
}
function moveLayerY(menuName) {
if (!loaded || (isVisible(menuName) && menuName != layerPoppedUp)) {
return;
}
if (!layersMoved) {
moveLayers();
layersMoved = 1;
}
if (!NS4) {
newY = getOffsetTop("ref" + menuName);
} else {
newY = currentY;
}
newY += menuTopShift;
layerHeight = getOffsetHeight(menuName);
windowHeight = getWindowHeight();
windowYOffset = getWindowYOffset();
if (newY + layerHeight > windowHeight + windowYOffset) {
if (layerHeight > windowHeight) {
newY = windowYOffset;
} else {
newY = windowHeight + windowYOffset - layerHeight;
}
}
if (Math.abs(getOffsetTop(men uName) - newY) > thresholdY) {
setTop(menuName, newY);
}
}
function moveLayerX1(menuName, father) {
if (!lwidthDetected) {
return;
}
if (!Opera5 && !IE4) {
width1 = lwidth[menuName];
} else if (Opera5) {
// Opera 5 stupidly and exaggeratedly overestimates layers widths
// hence we consider a default value equal to $abscissaStep
width1 = abscissaStep;
}
foobar = getOffsetLeft(father + menuName);
if (!IE4) {
windowWidth = getWindowWidth();
windowXOffset = getWindowXOffset();
if (foobar + width1 > windowWidth + windowXOffset) {
foobar = windowWidth + windowXOffset - width1;
}
if (foobar < windowXOffset) {
foobar = windowXOffset;
}
}
setLeft(menuName, foobar);
}
function layersOverlap(layer, i) {
if (Konqueror22) {
return true;
}
// xa1 = getOffsetLeft(layer);
//setLeft(layer, xa1);
xa1 = layerLeft[layer];
xa2 = xa1 + getOffsetWidth(layer);
//setWidth(layer, xa2-xa1);
// ya1 = getOffsetTop(layer);
//setTop(layer, ya1);
ya1 = layerTop[layer];
ya2 = ya1 + getOffsetHeight(layer);
//setHeight(layer, ya2-ya1);
//alert(":" + xa1 + ":" + xa2 + ":" + ya1 + ":" + ya2 + ":");
xb1 = toBeHiddenLeft[i];
xb2 = xb1 + toBeHidden[i].offsetWidth;
yb1 = toBeHiddenTop[i];
yb2 = yb1 + toBeHidden[i].offsetHeight ;
//alert(":" + xb1 + ":" + xb2 + ":" + yb1 + ":" + yb2 + ":");
if(xb1>xa1) xa1=xb1; if(xb2<xa2) xa2=xb2;
if(yb1>ya1) ya1=yb1; if(yb2<ya2) ya2=yb2;
return (xa2>xa1 && ya2>ya1);
}
function seeThroughWorkaround(menuN ame, on) {
for (i=0; i<toBeHidden.length; i++) {
if (layersOverlap(menuName, i)) {
if (on) {
toBeHidden[i].style.visibi lity = "hidden";
} else {
toBeHidden[i].style.visibi lity = "visible";
}
}
}
}
function LMPopUpL(menuName, on) {
if (!loaded) {
return;
}
if (!layersMoved) {
moveLayers();
layersMoved = 1;
}
setVisibility(menuName, on);
}
function LMPopUp(menuName, isCurrent) {
if (!loaded || menuName == layerPoppedUp || (isVisible(menuName) && !isCurrent)) {
return;
}
if (menuName == father[layerPoppedUp]) {
LMPopUpL(layerPoppedUp, false);
// seeThroughWorkaround(menuN ame, false);
} else if (father[menuName] == layerPoppedUp) {
LMPopUpL(menuName, true);
seeThroughWorkaround(menuN ame, true);
} else {
shutdown();
foobar = menuName;
do {
LMPopUpL(foobar, true);
seeThroughWorkaround(fooba r, true);
foobar = father[foobar];
} while (foobar != "")
}
/*
if (layerPoppedUp == "") {
seeThroughElements(false);
}
*/
layerPoppedUp = menuName;
}
function resizeHandler() {
if (NS4) {
window.location.reload();
}
shutdown();
for (i=0; i<numl; i++) {
setLeft(listl[i], 0);
setTop(listl[i], 0);
}
// moveLayers();
layersMoved = 0;
}
window.onresize = resizeHandler;
function yaresizeHandler() {
if (window.innerWidth != origWidth || window.innerHeight != origHeight) {
if (Konqueror22 || Opera5) {
window.location.reload(); // Opera 5 often fails this
}
origWidth = window.innerWidth;
origHeight = window.innerHeight;
resizeHandler();
}
setTimeout('yaresizeHandle r()', 500);
}
function loadHandler() {
if (Konqueror22 || Opera56) {
origWidth = window.innerWidth;
origHeight = window.innerHeight;
yaresizeHandler();
}
}
window.onload = loadHandler;
function fixieflm(menuName) {
if (DOM) {
setWidth(menuName, "100%");
} else { // IE4 IS SIMPLY A BASTARD !!!
document.write("</div>");
document.write("<div id=\"IE4" + menuName + "\" style=\"position: relative; width: 100%; visibility: visible;\">");
}
}
</script>
<script language="JavaScript" type="text/javascript">
<!--
menuTopShift = -12;
menuRightShift = 10;
menuLeftShift = 6;
var thresholdY = 5;
var abscissaStep = 140;
toBeHidden = new Array();
toBeHiddenLeft = new Array();
toBeHiddenTop = new Array();
listl = ['L2','L17'];
var numl = listl.length;
father = new Array();
for (i=1; i<=21; i++) {
father["L" + i] = "";
}
father_keys = ['L3','L4','L5','L6','L7', 'L8','L9', 'L10','L11 ','L12','L 13','L14', 'L15','L16 ','L18','L 19','L20', 'L21'];
father_vals = ['L2','L2','L2','L2','L2', 'L2','L2', 'L2','L2', 'L2','L2', 'L2','L2', 'L2','L17' ,'L17','L1 7','L17'];
for (i=0; i<father_keys.length; i++) {
father[father_keys[i]] = father_vals[i];
}
lwidth = new Array();
var lwidthDetected = 0;
function moveLayers() {
if (!lwidthDetected) {
for (i=0; i<numl; i++) {
lwidth[listl[i]] = getOffsetWidth(listl[i]);
}
lwidthDetected = 1;
}
if (IE4) {
for (i=0; i<numl; i++) {
setWidth(listl[i], abscissaStep);
}
}
var hormenu1TOP = getOffsetTop('hormenu1L1') ;
var hormenu1HEIGHT = getOffsetHeight('hormenu1L 1');
setTop('L2', hormenu1TOP + hormenu1HEIGHT);
moveLayerX1('L2', 'hormenu1');
setTop('L17', hormenu1TOP + hormenu1HEIGHT);
moveLayerX1('L17', 'hormenu1');
}
back = new Array();
for (i=1; i<=21; i++) {
back["L" + i] = 0;
}
// -->
</script>
<script language="JavaScript">
//
var copyright=""
var changemode="This function is only available in layout mode.\nDo you want to change mode?";
var btns = [
["ilink","Insert the selected link","Insert the selected hyperlink from selectbox"],
[""],
["iimage","Insert the selected image","Insert the selected hyperlink from selectbox"],
]
var iimage=[["images/picture1. jpg","pict ure1.jpg"] ,["picture 2.jpg","pi cture2.jpg "]]; var ilink=[["http://www.google.com","Google"],["http://www.yahoo.com"," Yahoo"],[" http://www.av.com","AV"]];
function getimage(image){return ""}
function cmd(c){if(c=="save"){if(fo rmat=="HTM L"){docume nt.getElem entById("t ext").valu e=document .getElemen tById("f") .contentWi ndow.docum ent.body.i nnerHTML;d ocument.ge tElementBy Id("t").su bmit()}
else if(confirm(changemode))chm ode()}else if(c=="selectall")document .getElemen tById("f") .contentWi ndow.docum ent.execCo mmand(c,fa lse,null); else if(c=="html")chmode();
else if (c=="color") {document.getElementById(" f").conten tWindow.do cument.exe cCommand(' foreColor' , true, showModalDialog('colorpick er.html',' ','dialogH eight:275p x;dialogWi dth:350px' ));}
else{if(format=="HTML"||(c =="cut"||c =="copy"|| c=="paste" ||c=="undo "||c=="red o")){var tmp=null;if(c=="iimage"){t mp=documen t.forms[c] .iimage.va lue;c="ins ertimage"} if(c=="ili nk"){tmp=d ocument.fo rms[c].ili nk.value;c ="createli nk"}if((c. search(/h[ 1-4]/)!=-1 )||c=="p") {tmp="<"+c +">"; c="formatblock"}document.g etElementB yId("f").c ontentWind ow.focus() ;if (tmp==null && c=="createlink"){if(isNav) { tmp=prompt("Enter URL:", "");document.getElementByI d("f").con tentWindow .document. execComman d("CreateL ink",false ,tmp)}else document.getElementById("f ").content Window.doc ument.sele ction.crea teRange(). execComman d(c,true,t mp)} else if (c=="cut"||c=="copy"||c==" paste") document.getElementById("f ").content Window.doc ument.sele ction.crea teRange(). execComman d(c,false, null); else document.getElementById("f ").content Window.doc ument.exec Command(c, false,tmp) ;document. getElement ById("f"). contentWin dow.focus( );}}}
function tables(){for(var i=0;i<btns.length;i++){if( btns[i][0] =="ilink") sb(i,ilink );if(btns[ i][0]=="ii mage")sb(i ,iimage);i f(btns[i][ 0]=="tr")d ocument.wr ite("</td> </tr></tab le></td></ tr><tr><td class=\"edit\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td class=\"edit\">");else{if( btns[i][0] !="")docum ent.write( "<img src=\""+getimage(btns[i][0 ])+"\" id=\""+btns[i][0]+"\" alt=\""+btns[i][1]+"\" title=\""+btns[i][1]+"\" onclick=\"cmd('"+btns[i][0 ]+"')\" width=\"23\" height=\"22\" style=\"border:outset 1px;\" onmouseover=\"this.style.b order='ins et 1px';window.status='"+btns [i][2]+"'\ " onmouseout=\"this.style.bo rder='outs et 1px';window.status='"+copy right+"'\" >");else document.write("<img src=\""+getimage(btns[i][0 ])+"\" alt=\"\" width=\"3\" height=\"22\">")}}}
function sb(i,tmp){document.write(" </td><td class=\"edit\"><form id=\""+btns[i][0]+"\" style=\"margin:0\"><select id=\""+btns[i][0]+"\" class=\"edit\">");for(var j=0;j<tmp.length;j++)docum ent.write( "<option value=\""+ tmp[j][0]+"\">"+tmp[j][1]+ "</option> ");documen t.write("< /select></ form></td> <td class=\"edit\">")}
function bloker(){return false}document.ondragstart =bloker;im g1=new Image();img1.src=getimage( "html");im g2=new Image();img2.src=getimage( "layout");
</script></head>
<body>
<table border="0" cellpadding="0" cellspacing="0" class="darkbordertablemain " >
<tr>
<td>
<table border="0" cellpadding="3" cellspacing="1">
<tr valign="baseline">
<td class="ivorybodytable" align="center">
<div id="hormenu1L1" style="position: relative; visibility: visible;" onmouseover="clearLMTO();" onmouseout="setLMTO();">
<script language="JavaScript" type="text/javascript">
<!--
if (IE) fixieflm("hormenu1L1");
// -->
</script>
<a href="/pcc9/" onmouseover="shutdown();"
class="phplmold">This  ;…</a ></div>
</td>
<td class="ivorybodytable" align="center">
<div id="hormenu1L2" style="position: relative; visibility: visible;" onmouseover="clearLMTO();" onmouseout="setLMTO();">
<script language="JavaScript" type="text/javascript">
<!--
if (IE) fixieflm("hormenu1L2");
// -->
</script>
<a href="/pcc9/site/edit.phpP roject_Lau nch.html" onmouseover="moveLayerX1(' L2', 'hormenu1') ; LMPopUp('L2', false);"
class="phplmold">Project La…</a> <img
src="images/down-arrow.png " width="9" height="5"
border="0" alt=">>" /></div>
</td>
<td class="ivorybodytable" align="center">
<div id="hormenu1L17" style="position: relative; visibility: visible;" onmouseover="clearLMTO();" onmouseout="setLMTO();">
<script language="JavaScript" type="text/javascript">
<!--
if (IE) fixieflm("hormenu1L17");
// -->
</script>
<a href="/pcc9/site/edit.phpW hat-27s_Wo rking.html " onmouseover="moveLayerX1(' L17', 'hormenu1') ; LMPopUp('L17', false);"
class="phplmold">What's Wor…</a> <img
src="images/down-arrow.png " width="9" height="5"
border="0" alt=">>" /></div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border=1><tr><td>
<script language="JavaScript">tabl es();</scr ipt>
</td></tr></table>
<div id="L2" style="position: absolute; left: 0; top: 0; visibility: hidden;" onmouseover="clearLMTO();" onmouseout="setLMTO();">
<div align=left class=sub_menu_position><t able border="0" cellpadding="1" cellspacing="0" class="darkbordertable">
<tr>
<td>
<table border="0" cellpadding="5" cellspacing="0" class="ivorybodytable" width="140">
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="ivorybodytable" colspan="2" nowrap="nowrap">
</td>
</tr>
<tr>
<td nowrap="nowrap"></td>
<td width="100%" class="ivorybodytable" valign="middle" nowrap="nowrap"><a
href="/pcc9/site/edit.phpP roject_Lau nch/dfsgsd fgfsdg.htm l" id="refL3" onmouseover="LMPopUp('L2', true);"
class="phplmold">dfsgsdfgf sdg</a></t d>
</tr>
<tr>
<td nowrap="nowrap"></td>
<td width="100%" class="ivorybodytable" valign="middle" nowrap="nowrap"><a
href="/pcc9/site/edit.phpP roject_Lau nch/sdfgdf sgfsdg.htm l" id="refL4" onmouseover="LMPopUp('L2', true);"
class="phplmold">sdfgdfsgf sdg</a></t d>
</tr>
<tr>
<td nowrap="nowrap"></td>
<td width="100%" class="ivorybodytable" valign="middle" nowrap="nowrap"><a
href="/pcc9/site/edit.phpP roject_Lau nch/dfsgsd fgsdfgdfsg .html" id="refL5" onmouseover="LMPopUp('L2', true);"
class="phplmold">dfsgsdfgs dfgdfsg</a ></td>
</tr>
<tr>
<td nowrap="nowrap"></td>
<td width="100%" class="ivorybodytable" valign="middle" nowrap="nowrap"><a
href="/pcc9/site/edit.phpP roject_Lau nch/dfsgsd fgfsdg.htm l" id="refL6" onmouseover="LMPopUp('L2', true);"
class="phplmold">dfsgsdfgf sdg</a></t d>
</tr>
<tr>
<td nowrap="nowrap"></td>
<td width="100%" class="ivorybodytable" valign="middle" nowrap="nowrap"><a
href="/pcc9/site/edit.phpP roject_Lau nch/sdfgdf sgfsdg.htm l" id="refL7" onmouseover="LMPopUp('L2', true);"
class="phplmold">sdfgdfsgf sdg</a></t d>
</tr>
<tr>
<td nowrap="nowrap"></td>
<td width="100%" class="ivorybodytable" valign="middle" nowrap="nowrap"><a
href="/pcc9/site/edit.phpP roject_Lau nch/dfsgsd fgsdfgdfsg .html" id="refL8" onmouseover="LMPopUp('L2', true);"
class="phplmold">dfsgsdfgs dfgdfsg</a ></td>
</tr>
<tr>
<td nowrap="nowrap"></td>
<td width="100%" class="ivorybodytable" valign="middle" nowrap="nowrap"><a
href="/pcc9/site/edit.phpP roject_Lau nch/dfsgsd fgfsdg.htm l" id="refL9" onmouseover="LMPopUp('L2', true);"
class="phplmold">dfsgsdfgf sdg</a></t d>
</tr>
<tr>
<td nowrap="nowrap"></td>
<td width="100%" class="ivorybodytable" valign="middle" nowrap="nowrap"><a
href="/pcc9/site/edit.phpP roject_Lau nch/sdfgdf sgfsdg.htm l" id="refL10" onmouseover="LMPopUp('L2', true);"
class="phplmold">sdfgdfsgf sdg</a></t d>
</tr>
<tr>
<td nowrap="nowrap"></td>
<td width="100%" class="ivorybodytable" valign="middle" nowrap="nowrap"><a
href="/pcc9/site/edit.phpP roject_Lau nch/dfsgsd fgsdfgdfsg .html" id="refL11" onmouseover="LMPopUp('L2', true);"
class="phplmold">dfsgsdfgs dfgdfsg</a ></td>
</tr>
<tr>
<td nowrap="nowrap"></td>
<td width="100%" class="ivorybodytable" valign="middle" nowrap="nowrap"><a
href="/pcc9/site/edit.phpP roject_Lau nch/z.com. html" id="refL12" onmouseover="LMPopUp('L2', true);"
class="phplmold">z.com</a> </td>
</tr>
<tr>
<td nowrap="nowrap"></td>
<td width="100%" class="ivorybodytable" valign="middle" nowrap="nowrap"><a
href="/pcc9/site/edit.phpP roject_Lau nch/River_ C-40P_Site .html" id="refL13" onmouseover="LMPopUp('L2', true);"
class="phplmold">River C@P Site</a></td>
</tr>
<tr>
<td nowrap="nowrap"></td>
<td width="100%" class="ivorybodytable" valign="middle" nowrap="nowrap"><a
href="/pcc9/site/edit.phpP roject_Lau nch/_Landi ng_First_N ation_C-40 P_Site.htm l" id="refL14" onmouseover="LMPopUp('L2', true);"
class="phplmold">Landing First…</a></td>
</tr>
<tr>
<td nowrap="nowrap"></td>
<td width="100%" class="ivorybodytable" valign="middle" nowrap="nowrap"><a
href="/pcc9/site/edit.phpP roject_Lau nch/Woodcr afts.html" id="refL15" onmouseover="LMPopUp('L2', true);"
class="phplmold">Woodcraft s</a></td>
</tr>
<tr>
<td nowrap="nowrap"></td>
<td width="100%" class="ivorybodytable" valign="middle" nowrap="nowrap"><a
href="/pcc9/site/edit.phpP roject_Lau nch/_Eleme ntary.html " id="refL16" onmouseover="LMPopUp('L2', true);"
class="phplmold"> Elementary</a></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</div>
<div id="L17" style="position: absolute; left: 0; top: 0; visibility: hidden;" onmouseover="clearLMTO();" onmouseout="setLMTO();">
<div align=left class=sub_menu_position><t able border="0" cellpadding="1" cellspacing="0" class="darkbordertable">
<tr>
<td>
<table border="0" cellpadding="5" cellspacing="0" class="ivorybodytable" width="140">
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="ivorybodytable" colspan="2" nowrap="nowrap">
</td>
</tr>
<tr>
<td nowrap="nowrap"></td>
<td width="100%" class="ivorybodytable" valign="middle" nowrap="nowrap"><a
href="/pcc9/site/edit.phpW hat-27s_Wo rking/z.CO M.html" id="refL18" onmouseover="LMPopUp('L17' , true);"
class="phplmold">z.COM</a> </td>
</tr>
<tr>
<td nowrap="nowrap"></td>
<td width="100%" class="ivorybodytable" valign="middle" nowrap="nowrap"><a
href="/pcc9/site/edit.phpW hat-27s_Wo rking/Lebe l.html" id="refL19" onmouseover="LMPopUp('L17' , true);"
class="phplmold">Lebel</a> </td>
</tr>
<tr>
<td nowrap="nowrap"></td>
<td width="100%" class="ivorybodytable" valign="middle" nowrap="nowrap"><a
href="/pcc9/site/edit.phpW hat-27s_Wo rking/Stri ght-MacKay -3A_Leadin g_the_Pack .html" id="refL20" onmouseover="LMPopUp('L17' , true);"
class="phplmold">Stright-M acKay: Lead…</a></td>
</tr>
<tr>
<td nowrap="nowrap"></td>
<td width="100%" class="ivorybodytable" valign="middle" nowrap="nowrap"><a
href="/pcc9/site/edit.phpW hat-27s_Wo rking/j_Mc Neil.html" id="refL21" onmouseover="LMPopUp('L17' , true);"
class="phplmold">j-McNeil< /a></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</div>
<script language="JavaScript" type="text/javascript">
<!--
loaded = 1;
// -->
</script>
</body></html>
How can this be fixed?
Thanks,
Hank
--------------------------
<html><head>
<style>
.ivorybodytable {
font-family: luxi sans, verdana, geneva, arial, helvetica, sans-serif;
font-size: 12px;
background-color: #cfcfc8;
}
.darkbordertablemain {
background-color: #660000;
margin-top: 0px;
margin-bottom: -1px;
}
.darkbordertable {
background-color: #660000;
margin-top: 11px;
margin-bottom: 1px;
}
</style>
<script language="JavaScript" type="text/javascript">
<!--
//
DOM = (document.getElementById) ? 1 : 0;
NS4 = (document.layers) ? 1 : 0;
Konqueror = (navigator.userAgent.index
Konqueror22 = (navigator.userAgent.index
Opera = (navigator.userAgent.index
Opera5 = (navigator.userAgent.index
Opera6 = (navigator.userAgent.index
Opera56 = Opera5 || Opera6;
IE = (navigator.userAgent.index
IE = IE && !Opera;
IE5 = IE && DOM;
IE4 = (document.all) ? 1 : 0;
IE4 = IE4 && IE && !DOM;
// -->
</script>
<script language="JavaScript" type="text/javascript">
//
layerLeft = new Array();
layerTop = new Array();
function setVisibility(layer,on) {
if (on) {
if (DOM) {
document.getElementById(la
} else if (NS4) {
document.layers[layer].vis
} else {
document.all[layer].style.
}
} else {
if (DOM) {
document.getElementById(la
} else if (NS4) {
document.layers[layer].vis
} else {
document.all[layer].style.
}
}
}
function isVisible(layer) {
if (DOM) {
return (document.getElementById(l
} else if (NS4) {
return (document.layers[layer].vi
} else {
return (document.all[layer].style
}
}
function setLeft(layer,x) {
layerLeft[layer] = x;
if (DOM && !Opera5) {
document.getElementById(la
} else if (Opera5) {
document.getElementById(la
} else if (NS4) {
document.layers[layer].lef
} else {
document.all[layer].style.
}
}
function getOffsetLeft(layer) {
var value = 0;
if (DOM) { // Mozilla, Konqueror >= 2.2, Opera >= 5, IE
object = document.getElementById(la
value = object.offsetLeft;
//alert (object.tagName + " --- " + object.offsetLeft);
while (object.tagName != "BODY" && object.offsetParent) {
object = object.offsetParent;
//alert (object.tagName + " --- " + object.offsetLeft);
value += object.offsetLeft;
}
} else if (NS4) {
value = document.layers[layer].pag
} else { // IE4 IS SIMPLY A BASTARD !!!
if (document.all["IE4" + layer]) {
layer = "IE4" + layer;
}
object = document.all[layer];
value = object.offsetLeft;
while (object.tagName != "BODY") {
object = object.offsetParent;
value += object.offsetLeft;
}
}
return (value);
}
function setTop(layer,y) {
layerTop[layer] = y;
if (DOM && !Opera5) {
document.getElementById(la
} else if (Opera5) {
document.getElementById(la
} else if (NS4) {
document.layers[layer].top
} else {
document.all[layer].style.
}
}
function getOffsetTop(layer) {
// IE 5.5 and 6.0 behaviour with this function is really strange:
// in some cases, they return a really too large value...
// ... after all, IE is buggy, nothing new
var value = 0;
if (DOM) {
object = document.getElementById(la
value = object.offsetTop;
while (object.tagName != "BODY" && object.offsetParent) {
object = object.offsetParent;
value += object.offsetTop;
}
} else if (NS4) {
value = document.layers[layer].pag
} else { // IE4 IS SIMPLY A BASTARD !!!
if (document.all["IE4" + layer]) {
layer = "IE4" + layer;
}
object = document.all[layer];
value = object.offsetTop;
while (object.tagName != "BODY") {
object = object.offsetParent;
value += object.offsetTop;
}
}
return (value);
}
function setWidth(layer,w) {
if (DOM) {
document.getElementById(la
} else if (NS4) {
// document.layers[layer].wid
} else {
document.all[layer].style.
}
}
function getOffsetWidth(layer) {
var value = 0;
if (DOM && !Opera56) {
value = document.getElementById(la
} else if (NS4) {
value = document.layers[layer].doc
} else if (Opera56) {
value = document.getElementById(la
} else { // IE4 IS SIMPLY A BASTARD !!!
if (document.all["IE4" + layer]) {
layer = "IE4" + layer;
}
value = document.all[layer].offset
}
return (value);
}
function setHeight(layer,h) { // unused, not tested
if (DOM) {
document.getElementById(la
} else if (NS4) {
// document.layers[layer].hei
} else {
document.all[layer].style.
}
}
function getOffsetHeight(layer) {
var value = 0;
if (DOM && !Opera56) {
value = document.getElementById(la
} else if (NS4) {
value = document.layers[layer].doc
} else if (Opera56) {
value = document.getElementById(la
} else { // IE4 IS SIMPLY A BASTARD !!!
if (document.all["IE4" + layer]) {
layer = "IE4" + layer;
}
value = document.all[layer].offset
}
return (value);
}
function getWindowWidth() {
var value = 0;
if ((DOM && !IE) || NS4 || Konqueror || Opera) {
value = top.innerWidth;
// } else if (NS4) {
// value = document.width;
} else { // IE
if (document.documentElement && document.documentElement.c
value = document.documentElement.c
} else if (document.body) {
value = document.body.clientWidth;
}
}
if (isNaN(value)) {
value = top.innerWidth;
}
return (value);
}
function getWindowXOffset() {
var value = 0;
if ((DOM && !IE) || NS4 || Konqueror || Opera) {
value = window.pageXOffset;
} else { // IE
if (document.documentElement && document.documentElement.s
value = document.documentElement.s
} else if (document.body) {
value = document.body.scrollLeft;
}
}
return (value);
}
function getWindowHeight() {
var value = 0;
if ((DOM && !IE) || NS4 || Konqueror || Opera) {
value = top.innerHeight;
} else { // IE
if (document.documentElement && document.documentElement.c
value = document.documentElement.c
} else if (document.body) {
value = document.body.clientHeight
}
}
if (isNaN(value)) {
value = top.innerHeight;
}
return (value);
}
function getWindowYOffset() {
var value = 0;
if ((DOM && !IE) || NS4 || Konqueror || Opera) {
value = window.pageYOffset;
} else { // IE
if (document.documentElement && document.documentElement.s
value = document.documentElement.s
} else if (document.body) {
value = document.body.scrollTop;
}
}
return (value);
}
</script>
<script language="JavaScript" type="text/javascript">
//
useTimeouts = 1;
timeoutLength = 1000; // time in ms; not significant if useTimeouts = 0;
shutdownOnClick = 0;
loaded = 0;
layersMoved = 0;
layerPoppedUp = "";
timeoutFlag = 0;
if (Opera56 || IE4) {
useTimeouts = 0;
}
if (NS4 || Opera56 || IE4) {
shutdownOnClick = 1;
}
currentY = 0;
function grabMouse(e) { // for NS4
currentY = e.pageY;
}
if (NS4) {
document.captureEvents(Eve
document.onmousemove = grabMouse;
}
function seeThroughElements(show) {
if (show) {
foobar = "visible";
} else {
foobar = "hidden";
}
for (i=0; i<toBeHidden.length; i++) {
toBeHidden[i].style.visibi
}
}
function shutdown() {
for (i=0; i<numl; i++) {
LMPopUpL(listl[i], false);
}
layerPoppedUp = "";
if (Konqueror || IE5) {
seeThroughElements(true);
}
}
if (shutdownOnClick) {
if (NS4) {
document.onmousedown = shutdown;
} else {
document.onclick = shutdown;
}
}
function setLMTO() {
if (useTimeouts) {
timeoutFlag = setTimeout('shutdown()', timeoutLength);
}
}
function clearLMTO() {
if (useTimeouts) {
clearTimeout(timeoutFlag);
}
}
function moveLayerX(menuName) {
if (!loaded || (isVisible(menuName) && menuName != layerPoppedUp)) {
return;
}
if (father[menuName] != "") {
if (!Opera5 && !IE4) {
width0 = lwidth[father[menuName]];
width1 = lwidth[menuName];
} else if (Opera5) {
// Opera 5 stupidly and exaggeratedly overestimates layers widths
// hence we consider a default value equal to $abscissaStep
width0 = abscissaStep;
width1 = abscissaStep;
} else if (IE4) {
width0 = getOffsetWidth(father[menu
width1 = getOffsetWidth(menuName);
}
onLeft = getOffsetLeft(father[menuN
onRight = getOffsetLeft(father[menuN
windowWidth = getWindowWidth();
windowXOffset = getWindowXOffset();
// if (NS4 && !DOM) {
// windowXOffset = 0;
// }
if (onLeft < windowXOffset && onRight + width1 > windowWidth + windowXOffset) {
if (onRight + width1 - windowWidth - windowXOffset > windowXOffset - onLeft) {
onLeft = windowXOffset;
} else {
onRight = windowWidth + windowXOffset - width1;
}
}
if (back[father[menuName]]) {
if (onLeft < windowXOffset) {
back[menuName] = 0;
} else {
back[menuName] = 1;
}
} else {
//alert(onRight + " - " + width1 + " - " + windowWidth + " - " + windowXOffset);
if (onRight + width1 > windowWidth + windowXOffset) {
back[menuName] = 1;
} else {
back[menuName] = 0;
}
}
if (back[menuName]) {
setLeft(menuName, onLeft);
} else {
setLeft(menuName, onRight);
}
}
moveLayerY(menuName); // workaround needed for Mozilla < 1.4 for MS Windows
}
function moveLayerY(menuName) {
if (!loaded || (isVisible(menuName) && menuName != layerPoppedUp)) {
return;
}
if (!layersMoved) {
moveLayers();
layersMoved = 1;
}
if (!NS4) {
newY = getOffsetTop("ref" + menuName);
} else {
newY = currentY;
}
newY += menuTopShift;
layerHeight = getOffsetHeight(menuName);
windowHeight = getWindowHeight();
windowYOffset = getWindowYOffset();
if (newY + layerHeight > windowHeight + windowYOffset) {
if (layerHeight > windowHeight) {
newY = windowYOffset;
} else {
newY = windowHeight + windowYOffset - layerHeight;
}
}
if (Math.abs(getOffsetTop(men
setTop(menuName, newY);
}
}
function moveLayerX1(menuName, father) {
if (!lwidthDetected) {
return;
}
if (!Opera5 && !IE4) {
width1 = lwidth[menuName];
} else if (Opera5) {
// Opera 5 stupidly and exaggeratedly overestimates layers widths
// hence we consider a default value equal to $abscissaStep
width1 = abscissaStep;
}
foobar = getOffsetLeft(father + menuName);
if (!IE4) {
windowWidth = getWindowWidth();
windowXOffset = getWindowXOffset();
if (foobar + width1 > windowWidth + windowXOffset) {
foobar = windowWidth + windowXOffset - width1;
}
if (foobar < windowXOffset) {
foobar = windowXOffset;
}
}
setLeft(menuName, foobar);
}
function layersOverlap(layer, i) {
if (Konqueror22) {
return true;
}
// xa1 = getOffsetLeft(layer);
//setLeft(layer, xa1);
xa1 = layerLeft[layer];
xa2 = xa1 + getOffsetWidth(layer);
//setWidth(layer, xa2-xa1);
// ya1 = getOffsetTop(layer);
//setTop(layer, ya1);
ya1 = layerTop[layer];
ya2 = ya1 + getOffsetHeight(layer);
//setHeight(layer, ya2-ya1);
//alert(":" + xa1 + ":" + xa2 + ":" + ya1 + ":" + ya2 + ":");
xb1 = toBeHiddenLeft[i];
xb2 = xb1 + toBeHidden[i].offsetWidth;
yb1 = toBeHiddenTop[i];
yb2 = yb1 + toBeHidden[i].offsetHeight
//alert(":" + xb1 + ":" + xb2 + ":" + yb1 + ":" + yb2 + ":");
if(xb1>xa1) xa1=xb1; if(xb2<xa2) xa2=xb2;
if(yb1>ya1) ya1=yb1; if(yb2<ya2) ya2=yb2;
return (xa2>xa1 && ya2>ya1);
}
function seeThroughWorkaround(menuN
for (i=0; i<toBeHidden.length; i++) {
if (layersOverlap(menuName, i)) {
if (on) {
toBeHidden[i].style.visibi
} else {
toBeHidden[i].style.visibi
}
}
}
}
function LMPopUpL(menuName, on) {
if (!loaded) {
return;
}
if (!layersMoved) {
moveLayers();
layersMoved = 1;
}
setVisibility(menuName, on);
}
function LMPopUp(menuName, isCurrent) {
if (!loaded || menuName == layerPoppedUp || (isVisible(menuName) && !isCurrent)) {
return;
}
if (menuName == father[layerPoppedUp]) {
LMPopUpL(layerPoppedUp, false);
// seeThroughWorkaround(menuN
} else if (father[menuName] == layerPoppedUp) {
LMPopUpL(menuName, true);
seeThroughWorkaround(menuN
} else {
shutdown();
foobar = menuName;
do {
LMPopUpL(foobar, true);
seeThroughWorkaround(fooba
foobar = father[foobar];
} while (foobar != "")
}
/*
if (layerPoppedUp == "") {
seeThroughElements(false);
}
*/
layerPoppedUp = menuName;
}
function resizeHandler() {
if (NS4) {
window.location.reload();
}
shutdown();
for (i=0; i<numl; i++) {
setLeft(listl[i], 0);
setTop(listl[i], 0);
}
// moveLayers();
layersMoved = 0;
}
window.onresize = resizeHandler;
function yaresizeHandler() {
if (window.innerWidth != origWidth || window.innerHeight != origHeight) {
if (Konqueror22 || Opera5) {
window.location.reload(); // Opera 5 often fails this
}
origWidth = window.innerWidth;
origHeight = window.innerHeight;
resizeHandler();
}
setTimeout('yaresizeHandle
}
function loadHandler() {
if (Konqueror22 || Opera56) {
origWidth = window.innerWidth;
origHeight = window.innerHeight;
yaresizeHandler();
}
}
window.onload = loadHandler;
function fixieflm(menuName) {
if (DOM) {
setWidth(menuName, "100%");
} else { // IE4 IS SIMPLY A BASTARD !!!
document.write("</div>");
document.write("<div id=\"IE4" + menuName + "\" style=\"position: relative; width: 100%; visibility: visible;\">");
}
}
</script>
<script language="JavaScript" type="text/javascript">
<!--
menuTopShift = -12;
menuRightShift = 10;
menuLeftShift = 6;
var thresholdY = 5;
var abscissaStep = 140;
toBeHidden = new Array();
toBeHiddenLeft = new Array();
toBeHiddenTop = new Array();
listl = ['L2','L17'];
var numl = listl.length;
father = new Array();
for (i=1; i<=21; i++) {
father["L" + i] = "";
}
father_keys = ['L3','L4','L5','L6','L7',
father_vals = ['L2','L2','L2','L2','L2',
for (i=0; i<father_keys.length; i++) {
father[father_keys[i]] = father_vals[i];
}
lwidth = new Array();
var lwidthDetected = 0;
function moveLayers() {
if (!lwidthDetected) {
for (i=0; i<numl; i++) {
lwidth[listl[i]] = getOffsetWidth(listl[i]);
}
lwidthDetected = 1;
}
if (IE4) {
for (i=0; i<numl; i++) {
setWidth(listl[i], abscissaStep);
}
}
var hormenu1TOP = getOffsetTop('hormenu1L1')
var hormenu1HEIGHT = getOffsetHeight('hormenu1L
setTop('L2', hormenu1TOP + hormenu1HEIGHT);
moveLayerX1('L2', 'hormenu1');
setTop('L17', hormenu1TOP + hormenu1HEIGHT);
moveLayerX1('L17', 'hormenu1');
}
back = new Array();
for (i=1; i<=21; i++) {
back["L" + i] = 0;
}
// -->
</script>
<script language="JavaScript">
//
var copyright=""
var changemode="This function is only available in layout mode.\nDo you want to change mode?";
var btns = [
["ilink","Insert the selected link","Insert the selected hyperlink from selectbox"],
[""],
["iimage","Insert the selected image","Insert the selected hyperlink from selectbox"],
]
var iimage=[["images/picture1.
function getimage(image){return ""}
function cmd(c){if(c=="save"){if(fo
else if(confirm(changemode))chm
else if (c=="color") {document.getElementById("
else{if(format=="HTML"||(c
function tables(){for(var i=0;i<btns.length;i++){if(
function sb(i,tmp){document.write("
function bloker(){return false}document.ondragstart
</script></head>
<body>
<table border="0" cellpadding="0" cellspacing="0" class="darkbordertablemain
<tr>
<td>
<table border="0" cellpadding="3" cellspacing="1">
<tr valign="baseline">
<td class="ivorybodytable" align="center">
<div id="hormenu1L1" style="position: relative; visibility: visible;" onmouseover="clearLMTO();"
<script language="JavaScript" type="text/javascript">
<!--
if (IE) fixieflm("hormenu1L1");
// -->
</script>
<a href="/pcc9/" onmouseover="shutdown();"
class="phplmold">This 
</td>
<td class="ivorybodytable" align="center">
<div id="hormenu1L2" style="position: relative; visibility: visible;" onmouseover="clearLMTO();"
<script language="JavaScript" type="text/javascript">
<!--
if (IE) fixieflm("hormenu1L2");
// -->
</script>
<a href="/pcc9/site/edit.phpP
class="phplmold">Project La…</a> <img
src="images/down-arrow.png
border="0" alt=">>" /></div>
</td>
<td class="ivorybodytable" align="center">
<div id="hormenu1L17" style="position: relative; visibility: visible;" onmouseover="clearLMTO();"
<script language="JavaScript" type="text/javascript">
<!--
if (IE) fixieflm("hormenu1L17");
// -->
</script>
<a href="/pcc9/site/edit.phpW
class="phplmold">What's Wor…</a> <img
src="images/down-arrow.png
border="0" alt=">>" /></div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border=1><tr><td>
<script language="JavaScript">tabl
</td></tr></table>
<div id="L2" style="position: absolute; left: 0; top: 0; visibility: hidden;" onmouseover="clearLMTO();"
<div align=left class=sub_menu_position><t
<tr>
<td>
<table border="0" cellpadding="5" cellspacing="0" class="ivorybodytable" width="140">
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="ivorybodytable" colspan="2" nowrap="nowrap">
</td>
</tr>
<tr>
<td nowrap="nowrap"></td>
<td width="100%" class="ivorybodytable" valign="middle" nowrap="nowrap"><a
href="/pcc9/site/edit.phpP
class="phplmold">dfsgsdfgf
</tr>
<tr>
<td nowrap="nowrap"></td>
<td width="100%" class="ivorybodytable" valign="middle" nowrap="nowrap"><a
href="/pcc9/site/edit.phpP
class="phplmold">sdfgdfsgf
</tr>
<tr>
<td nowrap="nowrap"></td>
<td width="100%" class="ivorybodytable" valign="middle" nowrap="nowrap"><a
href="/pcc9/site/edit.phpP
class="phplmold">dfsgsdfgs
</tr>
<tr>
<td nowrap="nowrap"></td>
<td width="100%" class="ivorybodytable" valign="middle" nowrap="nowrap"><a
href="/pcc9/site/edit.phpP
class="phplmold">dfsgsdfgf
</tr>
<tr>
<td nowrap="nowrap"></td>
<td width="100%" class="ivorybodytable" valign="middle" nowrap="nowrap"><a
href="/pcc9/site/edit.phpP
class="phplmold">sdfgdfsgf
</tr>
<tr>
<td nowrap="nowrap"></td>
<td width="100%" class="ivorybodytable" valign="middle" nowrap="nowrap"><a
href="/pcc9/site/edit.phpP
class="phplmold">dfsgsdfgs
</tr>
<tr>
<td nowrap="nowrap"></td>
<td width="100%" class="ivorybodytable" valign="middle" nowrap="nowrap"><a
href="/pcc9/site/edit.phpP
class="phplmold">dfsgsdfgf
</tr>
<tr>
<td nowrap="nowrap"></td>
<td width="100%" class="ivorybodytable" valign="middle" nowrap="nowrap"><a
href="/pcc9/site/edit.phpP
class="phplmold">sdfgdfsgf
</tr>
<tr>
<td nowrap="nowrap"></td>
<td width="100%" class="ivorybodytable" valign="middle" nowrap="nowrap"><a
href="/pcc9/site/edit.phpP
class="phplmold">dfsgsdfgs
</tr>
<tr>
<td nowrap="nowrap"></td>
<td width="100%" class="ivorybodytable" valign="middle" nowrap="nowrap"><a
href="/pcc9/site/edit.phpP
class="phplmold">z.com</a>
</tr>
<tr>
<td nowrap="nowrap"></td>
<td width="100%" class="ivorybodytable" valign="middle" nowrap="nowrap"><a
href="/pcc9/site/edit.phpP
class="phplmold">River C@P Site</a></td>
</tr>
<tr>
<td nowrap="nowrap"></td>
<td width="100%" class="ivorybodytable" valign="middle" nowrap="nowrap"><a
href="/pcc9/site/edit.phpP
class="phplmold">Landing First…</a></td>
</tr>
<tr>
<td nowrap="nowrap"></td>
<td width="100%" class="ivorybodytable" valign="middle" nowrap="nowrap"><a
href="/pcc9/site/edit.phpP
class="phplmold">Woodcraft
</tr>
<tr>
<td nowrap="nowrap"></td>
<td width="100%" class="ivorybodytable" valign="middle" nowrap="nowrap"><a
href="/pcc9/site/edit.phpP
class="phplmold"> Elementary</a></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</div>
<div id="L17" style="position: absolute; left: 0; top: 0; visibility: hidden;" onmouseover="clearLMTO();"
<div align=left class=sub_menu_position><t
<tr>
<td>
<table border="0" cellpadding="5" cellspacing="0" class="ivorybodytable" width="140">
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="ivorybodytable" colspan="2" nowrap="nowrap">
</td>
</tr>
<tr>
<td nowrap="nowrap"></td>
<td width="100%" class="ivorybodytable" valign="middle" nowrap="nowrap"><a
href="/pcc9/site/edit.phpW
class="phplmold">z.COM</a>
</tr>
<tr>
<td nowrap="nowrap"></td>
<td width="100%" class="ivorybodytable" valign="middle" nowrap="nowrap"><a
href="/pcc9/site/edit.phpW
class="phplmold">Lebel</a>
</tr>
<tr>
<td nowrap="nowrap"></td>
<td width="100%" class="ivorybodytable" valign="middle" nowrap="nowrap"><a
href="/pcc9/site/edit.phpW
class="phplmold">Stright-M
</tr>
<tr>
<td nowrap="nowrap"></td>
<td width="100%" class="ivorybodytable" valign="middle" nowrap="nowrap"><a
href="/pcc9/site/edit.phpW
class="phplmold">j-McNeil<
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</div>
<script language="JavaScript" type="text/javascript">
<!--
loaded = 1;
// -->
</script>
</body></html>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
i am also getting an error on line 650 of your code
function tables(){for(var i=0;i<btns.length;i++){if( btns[i][0] =="ilink") sb(i,ilink );if(btns[ i][0]=="ii mage")sb(i ,iimage);i f(btns[i][ 0]=="tr")d ocument.wr ite("</td> </tr></tab le></td></ tr><tr><td class=\"edit\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td class=\"edit\">");else{if( btns[i][0] !="")docum ent.write( "<img src=\""+getimage(btns[i][0 ])+"\" id=\""+btns[i][0]+"\" alt=\""+btns[i][1]+"\" title=\""+btns[i][1]+"\" onclick=\"cmd('"+btns[i][0 ]+"')\" width=\"23\" height=\"22\" style=\"border:outset 1px;\" onmouseover=\"this.style.b order='ins et 1px';window.status='"+btns [i][2]+"'\ " onmouseout=\"this.style.bo rder='outs et 1px';window.status='"+copy right+"'\" >");else document.write("<img src=\""+getimage(btns[i][0 ])+"\" alt=\"\" width=\"3\" height=\"22\">")}}}
btns[][0] is null or not an oblect
function tables(){for(var i=0;i<btns.length;i++){if(
btns[][0] is null or not an oblect
ASKER
Are you telling me that there is no practcal way?
About the error Jester_48 noted, I am aware of the error- the code was three times as long and I cut it down as much as I could for this post. That is why there is an error.
Thanks, everyone for your help-- I am still optimistic! :-)
About the error Jester_48 noted, I am aware of the error- the code was three times as long and I cut it down as much as I could for this post. That is why there is an error.
Thanks, everyone for your help-- I am still optimistic! :-)
the only way to do this is hide the object that is below the select using onclick="document.getEleme ntById('so meID').sty le.display = 'none';" onchange="document.getElem entById('s omeID').st yle.displa y = '';"
ASKER
Someone gave me a fix and it works! Except the links in the dropdown menu no longer work! Without the tweek all links work. After the tweek, only the top level links work.
How can I get the links to work again?
The following was given to me by Xin of yxScripts.com.
if (DOM) {
// modified by Xin
// ---------------
if (IE5) {
l=document.getElementById( layer);
if (typeof(l.ifrm)=="undefine d") {
l.ifrm=document.createElem ent("IFRAM E");
l.ifrm.src="java script:false";
with (l.ifrm.style) {
position="absolute"; left="0px"; top="0px";
visibility="inherit";
width=l.offsetWidth+"px"; height=l.offsetHeight+"px" ;
zIndex=1;
filter="progid:DXImageTran sform.Micr osoft.Alph a(style=0, opacity=0) ";
}
l.appendChild(l.ifrm);
}
}
// ---------------
document.getElementById(la yer).style .visibilit y = "visible";
} else if (NS4) {
How can I get the links to work again?
The following was given to me by Xin of yxScripts.com.
if (DOM) {
// modified by Xin
// ---------------
if (IE5) {
l=document.getElementById(
if (typeof(l.ifrm)=="undefine
l.ifrm=document.createElem
l.ifrm.src="java script:false";
with (l.ifrm.style) {
position="absolute"; left="0px"; top="0px";
visibility="inherit";
width=l.offsetWidth+"px"; height=l.offsetHeight+"px"
zIndex=1;
filter="progid:DXImageTran
}
l.appendChild(l.ifrm);
}
}
// ---------------
document.getElementById(la
} else if (NS4) {
ASKER
The code above replaces:
if (DOM) {
document.getElementById(la yer).style .visibilit y = "visible";
} else if (NS4) {
if (DOM) {
document.getElementById(la
} else if (NS4) {
change
zIndex=1;
to
zIndex=-1;
zIndex=1;
to
zIndex=-1;
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:
Accept: Jester_48 {http:#9883146}
Please leave any comments here within the next four days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
jAy
EE Cleanup Volunteer
I will leave the following recommendation for this question in the Cleanup topic area:
Accept: Jester_48 {http:#9883146}
Please leave any comments here within the next four days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
jAy
EE Cleanup Volunteer
Fritz the Blank