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

Left BG Image Not Working


Poster: BMXTRIX
Dated: Wednesday August 23 2006 - 17:57:02 BST

Hope I get all this right as I'm trying to figure things out...

On the menu page that actually contains all the information I have no issues at all with the menu and all images working perfectly:

http://www.bmxtrix.com/temporary/index.htm

But, when I use the same menu and link from other pages, the left menu graphics do not show up despite all other graphics displaying correctly, including the drop down menu on the left side...

http://www.bmxtrix.com/test.htm
http://www.bmxbuyer.com/cgi-bin/yabb2/YaBB.pl

All files are stored currently in http://www.bmxtrix.com/temporary/

I will be happy to copy/paste any additional code that anyone would like to see, and as a new user, some terms may take me a bit to figure out.

Apologies if this has been covered before.

Thanks!


Poster: Andy
Dated: Wednesday August 23 2006 - 18:09:18 BST

Hi,

In your HTML you have the following:


Code:
<!-- ***** This is the section of code you need to paste into your web pages ***** -->
<script type="text/javascript" src="../../../../../temporary/milonic_src.js"></script>   
<noscript><a href="http://www.milonic.com/">DHTML JavaScript Menu Powered by Milonic</a></noscript>
<script type="text/javascript">
if(ns4)_d.write("<scr"+"ipt type=text/javascript src=../../../../../temporary/mmenuns4.js><\/scr"+"ipt>");      
  else _d.write("<scr"+"ipt type=text/javascript src=../../../../../temporary/mmenudom.js><\/scr"+"ipt>");
</script>
<script type="text/javascript" src="../../../../../temporary/menu_data.js"></script>   
<!-- **** JavaScript Menu HTML Code -->



Try changing it to this:

Code:
<!-- ***** This is the section of code you need to paste into your web pages ***** -->
<script type="text/javascript" src="/temporary/milonic_src.js"></script>   
<noscript><a href="http://www.milonic.com/">DHTML JavaScript Menu Powered by Milonic</a></noscript>
<script type="text/javascript">
if(ns4)_d.write("<scr"+"ipt type=text/javascript src=/temporary/mmenuns4.js><\/scr"+"ipt>");      
  else _d.write("<scr"+"ipt type=text/javascript src=/temporary/mmenudom.js><\/scr"+"ipt>");
</script>
<script type="text/javascript" src="/temporary/menu_data.js"></script>   
<!-- **** JavaScript Menu HTML Code -->



We strongly advise against the use of ../ to go back a level or levels in a directory structure. Better to start from the beginning.

Hope this helps,
Andy


Poster: BMXTRIX
Dated: Wednesday August 23 2006 - 18:16:04 BST

Thanks for the info that the single slash will take me to the root of the website. Unfortunately, it did not help. The second link at BMXBUYER.com uses fully listed URLs to the BMXTRIX/temporary folder and the result is identical.

I can't even hazard a guess as to what is going on as I actually used the code that Milonic provided and just jumped from those graphics to my graphics. The error only occurs when I try to put the menu on a page outside the folder with the graphics in it.


Poster: BMXTRIX
Dated: Wednesday August 23 2006 - 21:36:17 BST

Weird - While the first bit of info didn't make any change, I went into the data.js file and changed all the image links to /temporary/image.gif and it suddenly made everything work perfectly.

Probably worth noting if you see it again. I'm guessing the 'forced' Milonic link has something to do with it... Even though I have the link in place and it doesn't try to change the link automatically for me. Not sure why that is exactly of course.

Thanks for your assistance - great looking menu system!