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:42
How do you initially link the basic files to a system?
Poster: Littleviews
Dated: Tuesday January 30 2007 - 18:58:59 GMT
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?
Poster: Ruth
Dated: Tuesday January 30 2007 - 19:30:05 GMT
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:
<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>
<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:
<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>
<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
then forgetabout ns4
Poster: Littleviews
Dated: Tuesday January 30 2007 - 20:13:39 GMT
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 %
Poster: Ruth
Dated: Tuesday January 30 2007 - 21:04:54 GMT
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
Poster: John
Dated: Tuesday January 30 2007 - 22:26:55 GMT
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.