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

images not showing up in submenus


Poster: cw_wd_riot
Dated: Friday October 24 2003 - 15:12:02 BST

Link to website

If you look at the drop down menu under Special Ed. Staff, you'll notice a broken image. Everything is correct in the code. I can copy menu_data.js from the webserver and place it in my test website on my local machine and everything will look fine. I want to add more images to the menu bar, but when I tried to yesterday, all the images exept the down arrow on the main bar did not show up. All the images are in *.gif format and are stored in the same folder as menu_data.js.[/url]


Poster: John
Dated: Friday October 24 2003 - 17:49:13 BST

A big part of the problem is you're using RC17 (good), and your license number is posted (extra good!), but you are not using the correct JS calls for this version.

Read the install.txt file that's in the download (kinda why it's there!), make those fixes, then let us know.


Poster: cw_wd_riot
Dated: Friday October 24 2003 - 19:08:21 BST

I read the install file and copied the HTML code from the install file into the code for my top shared border's code directly after the <body> tag. If I look at just the top shared border's code in IE6.0, the menu looks fine. When I go to the actual homepage of the website, the menu is gone and I have an error.

Line: 16
Char: 1770
Error: Object expected
Code: 0
URL: http://www.henderson.k12.ky.us/instruct ... /index.htm

I remember that I had this error when I first implemented the menu sometime last month, and somewhere on the message board I saw a discussion about js calls, where someone had posted another HTML code for the js calls. I used those and everthing worked good, except for the images in the menu. Now that I've put the HTML code for the js calls that are in the INSTALL.txt file, the menu doesn't work again.

I downloaded the menu again from the website just to make sure everything is new and the same version. Now, I'm on RC18.[/url]


Poster: Andy
Dated: Monday October 27 2003 - 11:10:36 GMT

Change your menu references to this:

Code:
   <SCRIPT language=JavaScript src="_borders/milonic_src.js" type=text/javascript></SCRIPT>   
   <script   language=JavaScript>
   if(ns4)_d.write("<scr"+"ipt language=JavaScript src=_borders/mmenuns4.js><\/scr"+"ipt>");      
     else _d.write("<scr"+"ipt language=JavaScript src=_borders/mmenudom.js><\/scr"+"ipt>");
   </script>
   <SCRIPT language=JavaScript src="_borders/menu_data.js" type=text/javascript></SCRIPT>


You might also want to add the full path to the above files. Once you start going inside sub directories, the above locations will fail

-- Andy


Poster: cw_wd_riot
Dated: Monday October 27 2003 - 13:59:38 GMT

Thank you very much for clearing that up for me. I had read about the relative and absolute addressing problems others had, but I wasn't sure where to put the absolute address into the HTML code.

And you're going to love this....

Now that I can see the menu again. The images still aren't showing up...

Do I need to put the path for the images in menu_data.js? I.E. image=http://www.xxx.com/xxx/xxx/image.gif

Jon


Poster: John
Dated: Monday October 27 2003 - 14:02:58 GMT

cw_wd_riot wrote:
Do I need to put the path for the images in menu_data.js?

Yes, of course! It does not have to be a full URL as you have shown - server-relative will work nicely.


Poster: cw_wd_riot
Dated: Monday October 27 2003 - 14:17:08 GMT

Thanks...

Jon