Selecting version 3 or version 5 of the menu

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
tcwebmaster
Beginner
Beginner
Posts: 9
Joined: Thu Jun 24, 2004 2:14 pm
Location: Tennessee, USA
Contact:

Selecting version 3 or version 5 of the menu

Post by tcwebmaster »

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.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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: Select all

<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
Post Reply