I am sure it is in the FAQ's but I cannot find anything on this. I am probably seraching with the wrong keywords.
I need to call a <DIV> in the main frame from a NAv frame. The code basically makes the div visible onmouseover(for sub-menus). The code worked ok, until I tried to add y and x offset. here is the code I used.
<!--
function navHighlight(layer, num){
if (browser == 'ns'){
parent.top.main.document[layer].top = num * 40 + 5 + parent.top.main.pageYOffset;
parent.top.main.document[layer].left = parent.top.main.pageXOffset;
show(layer);
}else if (browser == 'ie'){
eval("parent.top.main."+layer+".style.top = num * 40 + 5 + parent.top.main.document.body.scrollTop;"
;
eval("parent.top.main."+layer+".style.left = parent.top.main.document.body.scrollLeft;"
;
show(layer);
}else if (browser == 'ns6'){
eval("parent.top.main.document["+layer+"].top = num * 40 + 5 + parent.top.main.document.body.scrollTop;"
;
eval("parent.top.main.document["+layer+"].left = parent.top.main.document.body.scrollLeft;"
;
show(layer);
}
}
//-->
Brower == 'ns' and browser =='ie' both work fine.
If anyone is willing, I will send the framesets to you. This code has been bugging me now for a week, and I need to move on. Thank you very much in advance.
I need to call a <DIV> in the main frame from a NAv frame. The code basically makes the div visible onmouseover(for sub-menus). The code worked ok, until I tried to add y and x offset. here is the code I used.
<!--
function navHighlight(layer, num){
if (browser == 'ns'){
parent.top.main.document[layer].top = num * 40 + 5 + parent.top.main.pageYOffset;
parent.top.main.document[layer].left = parent.top.main.pageXOffset;
show(layer);
}else if (browser == 'ie'){
eval("parent.top.main."+layer+".style.top = num * 40 + 5 + parent.top.main.document.body.scrollTop;"
eval("parent.top.main."+layer+".style.left = parent.top.main.document.body.scrollLeft;"
show(layer);
}else if (browser == 'ns6'){
eval("parent.top.main.document["+layer+"].top = num * 40 + 5 + parent.top.main.document.body.scrollTop;"
eval("parent.top.main.document["+layer+"].left = parent.top.main.document.body.scrollLeft;"
show(layer);
}
}
//-->
Brower == 'ns' and browser =='ie' both work fine.
If anyone is willing, I will send the framesets to you. This code has been bugging me now for a week, and I need to move on. Thank you very much in advance.