Left BG Image Not Working

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
BMXTRIX
Beginner
Beginner
Posts: 3
Joined: Wed Aug 23, 2006 5:42 pm
Location: Lorton, VA, USA
Contact:

Left BG Image Not Working

Post by BMXTRIX »

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!
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Hi,

In your HTML you have the following:

Code: Select all

<!-- ***** 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="https://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: Select all

<!-- ***** 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="https://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
BMXTRIX
Beginner
Beginner
Posts: 3
Joined: Wed Aug 23, 2006 5:42 pm
Location: Lorton, VA, USA
Contact:

Post by BMXTRIX »

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.
BMXTRIX
Beginner
Beginner
Posts: 3
Joined: Wed Aug 23, 2006 5:42 pm
Location: Lorton, VA, USA
Contact:

Post by BMXTRIX »

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