mmenuns4.js & uparrow.gif

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
pat@dracoblu.com
Super Advanced
Super Advanced
Posts: 69
Joined: Sun May 19, 2002 7:23 pm
Contact:

mmenuns4.js & uparrow.gif

Post by pat@dracoblu.com »

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:
+_scs+"<img src=images/uparrow.gif>"+_sce)
Please advise when you have a chance... Thanks again.

Pat
http://www.dracoblu.com
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

If I understand the question, just change the statement to arrow.gif.
John
pat@dracoblu.com
Super Advanced
Super Advanced
Posts: 69
Joined: Sun May 19, 2002 7:23 pm
Contact:

Post by pat@dracoblu.com »

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
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

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:
John
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

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
pat@dracoblu.com
Super Advanced
Super Advanced
Posts: 69
Joined: Sun May 19, 2002 7:23 pm
Contact:

Post by pat@dracoblu.com »

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

I appreciate your detailed answer.

Regards,
Pat
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

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
pat@dracoblu.com
Super Advanced
Super Advanced
Posts: 69
Joined: Sun May 19, 2002 7:23 pm
Contact:

Post by pat@dracoblu.com »

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
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

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
pat@dracoblu.com
Super Advanced
Super Advanced
Posts: 69
Joined: Sun May 19, 2002 7:23 pm
Contact:

Post by pat@dracoblu.com »

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