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

Problem with menu image


Poster: Simon
Dated: Thursday September 16 2004 - 19:26:13 BST

Hey folks.

This may have been addressed somewhere else and if so I have yet to come across it so I apologize if this in inappropriate but here's the dilema.

I first used the Milonic menu on a site a few months back and the version at that time was: 5.35

I have the sites pages (Cold Fusion .cfm pages if it makes any difference) in their appropriate root folder on the webserver.

I have the Milonic menu in a sub "/menu" directory including the graphics I use for that menu.

So I call my menu from a page by:

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

Now in version 5.35 to have a menu graphic appear for some of my menu items that had drop downs off them, I added 'subimage='menu/arrow_down.gif'" to my entries such as:

aI("text=Seattle;url=seattle.cfm;status=Seattle;showmenu=seattle;subimage='menu/arrow_down.gif'");

And it worked just fine.

I'm now working on another clients site using the exact same directory structure running version 5.47.

But now:

subimage='menu/arrow_down.gif'

results in a broken image.

As a test I upgraded the former site (development environment) to version 5.47 and it too now has broken links.

Any suggestions? I've tried:

subimage='menu/arrow_down.gif'
subimage='/menu/arrow_down.gif'
subimage='arrow_down.gif'
subimage='../menu/arrow_down.gif'

I'm just not sure what the path to this image is supposed to be anymore.

I would have thought as it's being pulled into a page at the root level that
'menu/graphic.gif' would be appropriate as it used to be but apparently not anymore.

Thanks for any insight.


Poster: kevin3442
Dated: Friday September 17 2004 - 0:24:06 BST

Hi Simon,

Try removing the single quotes around the image file name in the aI() string. You should also have a semicolon after the last parameter in the aI() string. I.e., instead of
Code:
aI("...;subimage='menu/arrow_down.gif'");

use
Code:
aI("...;subimage=menu/arrow_down.gif;");

Note that if you use the same subimage for each item that opens a submenu, you could save yourself some coding by defining the subimage in trhe menu style, rather than in each aI() item.

Hope that helps,

Kevin

P.S. Moved this message to the v5 Help Forum.