I need help with cross browser problems with my church website.  I created a new menu system using Dynapi objects and it works fine with Microsoft Internet Explorer but doesn't work with any version of Netscape or AOL that I have been able to try. My demo site is http://sunriseumc.com/demo (note the links don't actually work on the demo). 

 

I would appreciate any ideas as to where my problem is and how to fix it. Or is there a better way to create dynamic menus?

 

A sample of the dynamically created code (from an ASP database query) used to generate the menu is as follows:

 

<script language="Javascript" src=""dynapi.js"></script> <script language="Javascript">

 

 DynAPI.setLibraryPath('/lib/');
 DynAPI.include('dynapi.api.*');
 DynAPI.include('dynapi.api.browser.js')
 DynAPI.include('dynapi.api.dynlayer.js')
 DynAPI.include('dynapi.api.dyndocument.js')
 DynAPI.include('dynapi.event.*')

 

 DynAPI. {
menu0 = new DynLayer(null, 5 ,100 ,75 ,0, '');
menu0.setVisible(true)
DynAPI.document.addChild(menu0)
menu0_0 = new DynLayer(null,0, 0,  75, 25,'');
menu0_0.setHTML('<table CLASS="menuStyle" WIDTH="75"  CELLSPACING=1  BORDER=0><TR><TD ALIGN="right"><B>Home</B></TD></TR></TABLE>')
menuListener0 = new EventListener(menu0_0)
menuListener0. displaySubMenu(0,1)}
menuListener0.> menu0_0.addEventListener(menuListener0)
menu1 = new DynLayer(null,80, 100, 75,0, '');
menu1.setVisible(false)
DynAPI.document.addChild(menu1)
menu0_0.setVisible(true)
menu0.addChild(menu0_0)
menu1_0 = new DynLayer(null,0, 0,  75, 25,'');
menu1_0.setHTML('<FORM NAME="menuForm1_0" action="default.asp" method="POST"><input type=hidden name="goToPage" value="public/t_about.asp"><table CLASS="menuStyle" WIDTH="75"  CELLSPACING=1  BORDER=0><TR><TD ALIGN="right"><A HREF=""javascript:document.menuForm1_.submit();"><B>About" Us</B></A></TD></TR></TABLE></FORM>')
menuListener1 = new EventListener(menu1_0)
menuListener1. displaySubMenu(1,1)}
menuListener1.> menu1_0.addEventListener(menuListener1)
menu1_0.setVisible(true)
menu1.addChild(menu1_0)

... 9 menus are dynamically created ...

 

menu0.setHeight(250)
menu1.setHeight(50)
menu2.setHeight(75)
menu3.setHeight(50)
menu4.setHeight(100)
menu5.setHeight(50)
menu6.setHeight(75)
menu7.setHeight(25)
menu8.setHeight(25)

 

 }
 
 function displaySubMenu(menuCounter,nextMenuCounter)
 {
  if (menuCounter == 0) { menuCounter = 1}
   for (i= menuCounter; i <= 8 ; i++)
  {  
   eval("menu" + i + ".setVisible(false)")
  }
  eval("menu" + nextMenuCounter + ".setVisible(true)")
 }

 


</script>

 

Thanks,

Brian

Webmaster for Sunrise United Methodist Church

 

 

Brian

______________________

Brian C. Johnson

EDS, Information Specialist

SMCS Web Developer

[EMAIL PROTECTED]

VNet 622-6101 (Office)

(719) 535-6101

 

Reply via email to