_d.layers[mnu] has no properties. I looked in the file [though I would have no idea what to do about it and it has these lines:
Code: Select all
if(ns4)
{
mt=_d.layers[mnu].document.layers["el"+(el-1)]
if (!menu[11]) and so on
Code: Select all
if(ns4)
{
mt=_d.layers[mnu].document.layers["el"+(el-1)]
if (!menu[11]) and so on
I'll have to look into that some...pavia wrote:...I forgot that I had to resort to relatively positioning the menu (placed in a table) so I'm now hung up on how to add the requisite code snippets for the "Place Menu" command for Version 3 and the actual menu items for the first row of the menu for Version 5. Is there a way to incorporate these into one of those cute little if/else thingies?
Given Ruth's report combined with yours, it's more likely something I may have done wrong. Seems I have some testing to do. I'll get back to this thread a little later...And, just to complicate things (sorry!), I tried your suggested code and received a javascript error "mt has no properties." Maybe I did something wrong?
Code: Select all
<script language="javascript">
_NS4 = (document.layers) ? true : false;
if (_NS4) {
document.write("<scr"+"ipt language=JavaScript src=menu_array.js><\/scr"+"ipt>");
document.write("<scr"+"ipt language=JavaScript src=mmenu.js><\/scr"+"ipt>");
}
else {
document.write("<scr"+"ipt language=JavaScript src=milonic_src.js><\/scr"+"ipt>");
document.write("<scr"+"ipt language=JavaScript src=mmenudom.js><\/scr"+"ipt>");
document.write("<scr"+"ipt language=JavaScript src=menu_data.js><\/scr"+"ipt>");
}
</script> and then the other one with it split. Having part in the head and part in the body.
Well... there's a twist. I hadn't realized you were using a Mac (sorry... for not realizing it, not for the fact that you're using a Mac). Anything I try is in Windows. My default is Win2k. Don't even know where the nearest Mac might be, although it's definitely in a different building.pavia wrote:...Netscape 4.79 on the Macintosh