How do you initially link the basic files to a system?

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Littleviews
Advanced
Advanced
Posts: 16
Joined: Sat Jan 27, 2007 7:31 pm

How do you initially link the basic files to a system?

Post by Littleviews »

Hi - when I played around with the system last week, I used the recommended linking system which did not include notation such as "(ns4)_d.write("<"+_s..."

When I installed the pro version, some of the documentation indicates using the simplified link system, and others, the more complex system mentioned above that I'm guessing tests for netscape ver. 4. I found those instructions somewhere on the site in a Pdf file and am not sure I could get my hands on it again.

Anyway, last night, I manually typed the complex system (no cut and paste available) and it didn't work, so rather than go nuts at midnight, I used what did. (I believe you can see what I did on http://www.littleviews.com.

OK, so today, Ruth provided a link to http://support.milonic.com/demos/filters/index.htm. In Notepad, I see the complex version of initiating the scrpt (which I'll try as a cut and paste a bit later).

The question is ... what file linking method is correct and most up-to-date?
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

They are not called twice. One call is bracketed out by the <!-- and the closing one of those. I needed both calls available[using only one at a time, of course depending on where the page was, my desktop or the site] while in development, so I just switched which call had the <!-- blocking it :)

So, your code can be either the one that uses mmenuns4.js file if Netscape4x is the browser

Code: Select all

<script type="text/javascript" src="milonic_src.js"></script>	
<script	type="text/javascript">
if(ns4)_d.write("<scr"+"ipt type=text/javascript src=mmenuns4.js><\/scr"+"ipt>");		
  else _d.write("<scr"+"ipt type=text/javascript src=mmenudom.js><\/scr"+"ipt>"); 
</script>

<script type="text/javascript" src="menu_data.js"></script>
Or if you do not have to worry about Netscape4x, which I won't be coding for anymore since it is so far out of date for what should be in use in browsing, you can code like this

Code: Select all

<script type="text/javascript" src="milonic_src.js"></script>
<script type="text/javascript" src="mmenudom.js"></script>
<script type="text/javascript" src="menu_data.js"></script>
This just means that the menu won't show in NN 4x.

One thing you could do would be to check your statistics on visitors if you have that capability on your host and see if you are getting any visitors with NN4x and decide based on that whether you want the ability to have NN4x browsers be able to see your menu.

Ruth
Littleviews
Advanced
Advanced
Posts: 16
Joined: Sat Jan 27, 2007 7:31 pm

then forgetabout ns4

Post by Littleviews »

Here are my stats

MS Internet Explorer = 77.8 %
Firefox = 12.9 %
Safari = 5.2 %
Unknown = 2.2 %
Mozilla = 0.5 %
Netscape = 0.5 %
Opera = 0.3 %
Camino = 0 %
WebTV browser = 0 %
Konqueror = 0 %
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

Well, it seems you do have netscape users, at least .5% and I have no idea if the unknown might also include netscape4 or not. I don't know that there's any issue with using the longer coding, it just means the browser reads whichever mmenu file it needs, so anything other than nn4x would only use mmenudom.js and ignore the other one and nn4 would use the mmenuns4.js file.

Ruth
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

I think most everybody (including me) has stopped wasting time trying to code for NS4. It's just not worth all the hassle. Also, if I remember correctly, Andy is no longer updating the NS4 module, and has basically stopped supporting it as well. You (generic) just can't cover everybody, especially those using something so old and out of date.
John
Post Reply