Problem with menu image

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Simon
Beginner
Beginner
Posts: 7
Joined: Thu Sep 16, 2004 7:08 pm
Location: Seattle, WA

Problem with menu image

Post by Simon »

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.
- Simon
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 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: Select all

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

Code: Select all

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.
Post Reply