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:40
Moved the script and lost the images
Poster: bassman
Dated: Thursday June 23 2005 - 17:35:38 BST
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
Poster: Ruth
Dated: Thursday June 23 2005 - 17:55:16 BST
Hi,
Try making the path to the arrow in the menu_data.js file menu/arrow.gif
Ruth
Poster: bassman
Dated: Thursday June 23 2005 - 19:16:11 BST
Thanks Karen;
I have tried that, but it doesn't work. Same for the sub menu images. What else might it be ?
Pat
Poster: Ruth
Dated: Thursday June 23 2005 - 21:10:10 BST
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
Poster: bassman
Dated: Thursday June 23 2005 - 21:49:02 BST
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
Poster: bassman
Dated: Thursday June 23 2005 - 22:43:47 BST
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();
Poster: Ruth
Dated: Thursday June 23 2005 - 23:53:37 BST
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