Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:22

Selecting version 3 or version 5 of the menu


Poster: tcwebmaster
Dated: Tuesday June 29 2004 - 13:34:32 BST

I've seen some questions about programmatically selecting version 3 or version 5 -- meaning I'd like to select version 3 for older browsers and use version 5 for new browsers.

I know you did some coding to achieve this, but I never did find a resolution. Were you able to programmatically select either version 3 or version 5 depending on the browser?

I don't have much time at the moment to play around with it myself, but I'd be interested to hear about your experience.

Thanks.


Poster: Ruth
Dated: Tuesday June 29 2004 - 16:36:18 BST

As far as I know we never got that to work. The one thing we did get working was to load two different version 5 data files, one for ns4x and one for the rest. The data file for ns4x was a simple one with no fancy stuff in it.
Code:
<script language=JavaScript src="http://www.poems2u.com/4all/milonic_src.js" type="text/javascript"></script>
<script language=JavaScript type="text/javascript">
if (ns4) {
  _d.write("<scr"+"ipt language=JavaScript src=http://www.poems2u.com/4all/mmenuns4.js><\/scr"+"ipt>");
  _d.write("<scr"+"ipt language=JavaScript src=http://www.poems2u.com/4all/menu_data_ns4.js><\/scr"+"ipt>");
  drawMenus();
}
else {
  _d.write("<scr"+"ipt language=JavaScript src=http://www.poems2u.com/4all/mmenudom.js><\/scr"+"ipt>");
  _d.write("<scr"+"ipt language=JavaScript src=http://www.poems2u.com/4all/main.js><\/scr"+"ipt>");
}
</script>


The other option which someone used, I think I gave a link for that post, but in case I'm confused it's here .... this was to not load the menu at all for ns4 and provide a text link.

If you have ns4 here's a link to a pageon my site where I load the two different files. If you have ns4 you will see a plain blue menu, if you're using something else you see the regular one.

Ruth