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

Subimage path Problem


Poster: mrwhitehat __at__ hotmail.com
Dated: Friday June 3 2005 - 18:25:13 BST

Hi guys & gals!

In the code below I have a reference to a sub image. I will not display. I have tried the following:
placing the image in the same directory as the JS file.
referencing it in various ways
absolute reference.

It still won't display. Any suggestions?
The site is:
http://www.wichitavocations.com/steward ... velopment/

CODE:

with(background=new mm_style()){
borderstyle="solid";
fontfamily="Arial, Verdana";
fontsize="12";
fontstyle="normal";
fontweight="bold";
offcolor="#333300";
oncolor="#2A8896";
separatorcolor="transparent"
separatorsize="50"
subimage="menus/black_down_arrow.gif";
subimagepadding=3;
}


Poster: Ruth
Dated: Friday June 3 2005 - 18:48:13 BST

Hi,

It's a path issue :) From your steward_sub_menus.js file where the style coding is, you have this in the AllImagesStyle subimage="black_down_arrow.gif"; which is fine because the image is in the same place as the sub menu file, but in the background style you have stewardship_development/menus/black_down_arrow.gif
So, [if I can get this straight on the paths] the menu is looking for
Code:
http://www.wichitavocations.com/stewardship_development/
stewardship_development/menus/black_down_arrow.gif. 
I think that's correct, because the page resides at the stewardship_development/ level so now the call assumes another level from that level. I think, I hate paths :!:

Ruth

Sorry, no help


Poster: mrwhitehat __at__ hotmail.com
Dated: Friday June 3 2005 - 19:02:10 BST

Ruth,
I tried bothe the following and neither works:

subimage="http://www.wichitavocations/stewardship_development/menus/black_down_arrow.gif";
subimage="black_down_arrow.gif";

The JS is being run from http://www.wichitavocations/stewardship ... ent/menus/
and the sub image is also located there.

I thought perhps the JS looks for the sub image at the level of the HTMl file, so I changed it to:
subimage="menus/black_down_arrow.gif";
since the index.html is at http://www.wichitavocations/stewardship_development/

But... that didn't work either.

I really need to keep the menus in their own directory and not in the same directory as the html, but at this point I don't know if I can. What's the point in allowing a path to be specified for the sub image if you can't put it in a different place though!?


Poster: Ruth
Dated: Saturday June 4 2005 - 1:11:44 BST

Hi,

I just pasted your http address for the image in my browser and I get page not found and when I click the link for the other one it also gives me a page not found.

I remember reading someplace about someone having a problem with the underline in an image name. I can't remember the circumstances now, not even sure if it was on Milonic, and can't find a post with that, but try naming it blackdwn.gif and see what happens.

Ruth