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:48
Elements
Poster: Valarie
Dated: Wednesday January 14 2004 - 21:12:03 GMT
Thanks in advance for all assistance!
My testing link: http://www.clm1.org/NewWeb/index.htm
I've loaded up a couple of pages for testing purposes. The problem is with images I use on the main menu. If you move to one of the subpages, I'm losing the images. Any ideas??
Subpage: http://www.clm1.org/NewWeb/AboutCLM/Mem ... nefits.htm
Thanks!!
Poster: John
Dated: Wednesday January 14 2004 - 22:08:42 GMT
First problem is you're way down-level. You are running RC31, and current is RC40. Upgrade.
As to the graphics, your pathing is wrong. As you have it now, it is document-relative (Elements/Menu/about_rg.gif). At the root level it looks for http://www.clm1.org/NewWeb/Elements/Menu/about_rg.gif and finds it OK. When you move to a different level it now looks for http://www.clm1.org/NewWeb/AboutCLM/Mem ... out_rg.gif, which is not where your graphics are located. You need server-relative addressing, which is simply...
Code:
/NewWeb/Elements/Menu/about_rg.gif
This forces the server to start looking for things from the root level, regardless of where the page is located.
Don't forget the arrow as well!
Poster: Valarie
Dated: Wednesday January 14 2004 - 22:29:03 GMT
Thanks a ton, John!
Was trying to get away with not having to do that... as you see I'm building this in a temp location. Ah, well. =)
I've also uploaded the new build, boss. =)
Thanks again!
Poster: Maz
Dated: Thursday January 15 2004 - 1:23:42 GMT
Valarie,
Its really easy, just drop in the 3 new main js files.
Regards,
maz
Poster: John
Dated: Thursday January 15 2004 - 14:27:26 GMT
You're welcome.
Also, somewhere in the early 30's (I think!) a few minor changes were made to the data file syntax. You might want to compare the sample _data.js file in the download against yours just to be sure - small stuff, ';' additions and placement, etc.
Scratch that. Just looked at what you have and it is correct.
However, I would suggest taking the...
Code:
<script language="JavaScript" src="Script/milonic_src.js" type="text/javascript"></script>
<script language="JavaScript" type="text/javascript">
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=Script/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=Script/mmenudom.js><\/scr"+"ipt>");
</script>
<script language="JavaScript" type="text/javascript">
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=Script/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=Script/mmenudom.js><\/scr"+"ipt>");
</script>
...out of the <td> (leave only the _data call there) and move it up to the first items after <body>.