Subimage path Problem

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
mrwhitehat@hotmail.com
Advanced
Advanced
Posts: 12
Joined: Fri May 27, 2005 5:41 pm

Subimage path Problem

Post by mrwhitehat@hotmail.com »

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;
}
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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

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
mrwhitehat@hotmail.com
Advanced
Advanced
Posts: 12
Joined: Fri May 27, 2005 5:41 pm

Sorry, no help

Post by mrwhitehat@hotmail.com »

Ruth,
I tried bothe the following and neither works:

subimage="http://www.wichitavocations/stewardship ... _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!?
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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