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:44

mmenuns4.js & uparrow.gif


Poster: pat __at__ dracoblu.com
Dated: Monday February 9 2004 - 21:22:49 GMT

Thanks for all the effort in getting v5 final release....One question I have is the issue with calling the uparrow.gif in the mmenuns4.js file. This creates 404 errors, and it appears to still be in the code:

Quote:
+_scs+"<img src=images/uparrow.gif>"+_sce)


Please advise when you have a chance... Thanks again.

Pat
http://www.dracoblu.com


Poster: John
Dated: Monday February 9 2004 - 21:51:26 GMT

If I understand the question, just change the statement to arrow.gif.


Poster: pat __at__ dracoblu.com
Dated: Monday February 9 2004 - 22:06:09 GMT

Hi John...

I don't think I would like to tamper the actual code of the mmenuns4.js file.

If it is too much trouble can you consult Andy on this.

Pat


Poster: John
Dated: Monday February 9 2004 - 22:11:22 GMT

My error. You are correct, of course. Let's just say it's been a Monday and I missed that you were referencing the ns4 file itself.

For now I'd just duplicate the arrow.gif and rename the dup to uparrow.gif. We'll let Andy make the correction. :roll:


Poster: kevin3442
Dated: Tuesday February 10 2004 - 0:01:50 GMT

Hi Pat,

The error you get is because there is a hardcoded path and filename in mmenuns4.js, to an image it uses at the top and bottom of a scolling menu (as opposed to a followscrolling menu). If a menu is too tall to fit in the space alotted, and overflow=scroll is set in the menu definition, then the menu becomes scrollable. In most browsers, this means that a scrollbar will be added to the appropriate side of the menu. In NS4, however, the scrolling is done by adding a "scroll controller" at the top and bottom of the menu which, when moused over, will scroll the menu up or down. The "scroll control" uses an image like so: "images/uparrow.gif". The same image is used at the top and bottom of the scrolling menu. To see it in action, open NS4, go to milonic.com, and open the Samples submenu (select DHTML Menu | Samples).

Until Andy makes this a user-definable property, there are only three possible fixes.

(1) Avoid long submenus that require overflow=scroll;

(2) Create a subdirectory called "images" off of all your directories that containing html files. Place a file called uparrow.gif (preferably of a small up arrow) in the "images" directory. Unfortuately, since the path is relative to the page, you'd need an images directory in every directory containing html files that you load.

(3) Open mmenuns4.js. Find the two places where images/uparrow.gif occur, and replace them with a path and filename that exists on your site.

Hope that helps,

Kevin


Poster: pat __at__ dracoblu.com
Dated: Wednesday February 11 2004 - 23:08:44 GMT

Thanks Kevin... I'll give option #2 a go, since I follow an /images directory setup.

I appreciate your detailed answer.

Regards,
Pat


Poster: kevin3442
Dated: Thursday February 12 2004 - 6:39:13 GMT

You might run into a problem if you only have a single /images. Problem is that "/images/uparrow.gif" and "images/uparrow.gif" aren't necessarily the same. Depends on the structure f the site's file system.

Kevin


Poster: pat __at__ dracoblu.com
Dated: Thursday February 12 2004 - 6:50:48 GMT

Thanks for the reply Kevin.

I've basically got two directories - html and images - so I think that would represent images/uparrow.gif. Am I correct? I don't have NS 4 to try it out.
If you do, can you tell me if you get a 404 error off the link below.

Thanks, Pat

http://www.dracoblu.com/symbolistshow.html


Poster: kevin3442
Dated: Thursday February 12 2004 - 7:29:15 GMT

Hi Pat,

I can't believe you'd ask me to fire up NS4 and risk my computer's safety like that! ;) (kidding)

I looked at it in NS4.75. Sized the window to force scrolling in one of your Finalist submenus... the scrolling worked and no 404 error. I did, however, have to reload the page to get the layout to settle correclty.

Kevin


Poster: pat __at__ dracoblu.com
Dated: Thursday February 12 2004 - 8:09:54 GMT

Thanks so much Kevin, you have been a great help :)