Moved the script and lost the images

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
bassman
Beginner
Beginner
Posts: 5
Joined: Wed Jun 08, 2005 9:37 pm
Location: Chicago
Contact:

Moved the script and lost the images

Post by bassman »

Hi;

In experimenting with the menu, I've changed the folder name. The script loads, but not the images - which are in the same folder as the script. What am I overlooking ?
http://www.mmfcashdrawer.com/05site/heritage.htm

Thanks;

Pat
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

Try making the path to the arrow in the menu_data.js file menu/arrow.gif

Ruth
bassman
Beginner
Beginner
Posts: 5
Joined: Wed Jun 08, 2005 9:37 pm
Location: Chicago
Contact:

Post by bassman »

Thanks Karen;

I have tried that, but it doesn't work. Same for the sub menu images. What else might it be ?

Pat
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

I am not a path person, I always use full path. So, right now I see a site in which the page resides in 05site/ folder and the menu files and images in 05site/menu/ folder. The path is probably 05site/menu/arrow.gif or whatever other image.

Now were I testing it, I would first put in the full path and see if it loads, if it does, then I'd eliminate the root part, the mmfcashdrawer part and see if it loads, if it does then I'd eliminate the 05site and see if it loads and so on. That would tell me exactly where I was going wrong on my paths for images, etc.

Ruth
bassman
Beginner
Beginner
Posts: 5
Joined: Wed Jun 08, 2005 9:37 pm
Location: Chicago
Contact:

Post by bassman »

Thanks Ruth;
I'm afraid you've lost me. If the images load after I change the path, why would I make any additional changes ? In the menu_data file, I've tried the following to no avail:
subimage="05site/menu/arrow.gif";
subimage="/05site/menu/arrow.gif";
subimage="../05site/menu/arrow.gif";

I've even tried the absolute path, subimage="http://www.mmfcashdrawer.com/05site/menu/arrow.gif";

Could the problem be somewhere else ?

Pat
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

subimage="menu/arrow.gif"; should find it.
John
bassman
Beginner
Beginner
Posts: 5
Joined: Wed Jun 08, 2005 9:37 pm
Location: Chicago
Contact:

Post by bassman »

Thanks John.

It should find it but it doesn't. The entire script is below. I just can't figure it out.

Pat

_menuCloseDelay=500
_menuOpenDelay=150
_subOffsetTop=5
_subOffsetLeft=-125



with(menuStyle=new mm_style()){
onbgcolor="#ffffff";
oncolor="#000000";
offbgcolor="#DCE9F0";
offcolor="#515151";
bordercolor="#296488";
borderstyle="solid";
borderwidth=1;
separatorcolor="#2D729D";
separatorsize="1";
padding=5;
fontsize="75%";
fontstyle="normal";
fontfamily="Verdana, Tahoma, Arial";
pagecolor="black";
pagebgcolor="#82B6D7";
headercolor="#000000";
headerbgcolor="#ffffff";
subimage="menu/arrow.gif";
subimagepadding="2";
overfilter="Fade(duration=0.2);Alpha(opacity=100);Shadow(color='#777777', Direction=135, Strength=5)";
outfilter="randomdissolve(duration=0.3)";
}


with(milonic=new menuname("Main Menu")){
style=menuStyle;
top=175;
left=0;
alwaysvisible=1;
orientation="vertical";
aI("text=Home;url=http://www.mmfcashdrawer.com/;status=Back To Home Page");
aI("text=Products;showmenu=products");
aI("text=Support;showmenu=support;");
aI("text=News;url=http://www.mmfcashdrawer.com/;status=News from MMF")
aI("text=About MMF;url=http://www.mmfcashdrawer.com/;status=about MMF")
aI("text=Contact us;showmenu=contact;");
}

with(milonic=new menuname("products")){
style=menuStyle;
aI("text=Heritage Series;showmenu=Heritage;url=http://mmfcashdrawer.com");
aI("text=Val-u Line;showmenu=Val");
aI("text=MediaPLUS;showmenu=MP;");
aI("text=Platforms;showmenu=plat;");
aI("text=Accessories;showmenu=access;");

}

with(milonic=new menuname("MP")){
style=menuStyle;
borderwidth=1;
aI("image=MP.jpg;");
}

with(milonic=new menuname("Val")){
style=menuStyle;
borderwidth=1;
aI("image=Valu.jpg;");
}

with(milonic=new menuname("Heritage")){
style=menuStyle;
borderwidth=1;
aI("image=Heritage collage.jpg;url=http://www.mmfcashdrawer.com/");
}

with(milonic=new menuname("plat")){
style=menuStyle;
borderwidth=1;
aI("image=Clams.jpg;");
}

with(milonic=new menuname("access")){
style=menuStyle;
borderwidth=1;
aI("image=pedestal.jpg;");
}

with(milonic=new menuname("support")){
style=menuStyle;
aI("text=Warranties;");
aI("text=Drivers;");
aI("text=Documentation;");
aI("text=FAQ's;");
}

with(milonic=new menuname("contact")){
style=menuStyle;
aI("text=Phone 800 769 1954");
aI("text=Order Keys & Parts;url=http://www.mmfcashdrawer.com;");
aI("text=Request Literature;url=http://www.mmfcashdrawer.com;");
}

drawMenus();
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

You wouldn't change it if the images load.

You said the images were not loading.

I was giving an example of how to test to get the correct path, since we get a lot of 'why aren't my images loading' questions. Someone doing a search on the forum might see this and get an idea how they could actually test for the 'path' to their images.


Ruth
Post Reply