images on menu header do not appear?

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
stuarth
Advanced
Advanced
Posts: 14
Joined: Fri Oct 22, 2004 12:17 am
Location: UK

images on menu header do not appear?

Post by stuarth »

My menu has not gone live yet so I will try to explain my problem as best I can.

My menu functions fine as a horizontal bar across the browser however, When I load the page fresh the menu title images do not appear, instead I have the image placeholders with the white square and red cross!? The script is clealy not fetching the images. When I hover over one of these drop downs the image appears and stays there. When I run over all the image titles with the curser all the images appear and there does not seem to be a problem. Upon refreshing the page the images again dissapear and I have to go through the same process to see them.

Am I missing something simple here? Help would be greatly appreciated as its beginning to get on my nerves. I have looked at every element of JS but cannot find the problem?

If you require a URL for me to help you understand please let me know and I'll see what I can do.

Thanks,
Stu
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

Make sure you paths are correct, usually works best to start with slash
/images.gif

Then like the last post you might want to locate and use preloadimages.js

Hopefully you didn't put the menu in a div. ;)

maz
stuarth
Advanced
Advanced
Posts: 14
Joined: Fri Oct 22, 2004 12:17 am
Location: UK

Post by stuarth »

shouldnt the images load without preload? The timing of the images loading is not a problem. The images dont load at all until I roll over them. This isnt a preload problem.

Can anyone help?
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

What browser are you using, and OS? I've just tested the samples 12, 16, 17, 18, 19 all of which uses images and I didn't have any problem in IE5.5 win98se. If possible could you post a test page with your menu and images?

Ruth
stuarth
Advanced
Advanced
Posts: 14
Joined: Fri Oct 22, 2004 12:17 am
Location: UK

Post by stuarth »

I'm using IE 6.0. Should be ok.

I'm just trying to prepare a preview page for you online but might take a while.

Would it be easier if I supplied my JS on here for you to look at?

Thankyou very much for the help. Very much appreciated
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

We wouldn't have the images, nor the page coding along with the menu coding. We need all of it to see if something is causing the problem, some kind of conflict, so when you do the page, you need to have whatever coding is on the one that's causing you the problem.

Ruth
stuarth
Advanced
Advanced
Posts: 14
Joined: Fri Oct 22, 2004 12:17 am
Location: UK

Post by stuarth »

I have tried uploading all the necessary files (web pages / images / JS / css) etc. The problem with this is the menu does not appear at all when live?! Locally the menu appears but does not have the title images to begin the drop down titles. I could provide you with my code in text format but this forum does nat allow me to upload attachments.

This is beginning to get on my nerves. I have a few people helping me on the coding forum site where I was able to upload my DW MX pages and JS.

Thanks for the help but there is no point in you looking at my URL live because the menu does not appear!
stuarth
Advanced
Advanced
Posts: 14
Joined: Fri Oct 22, 2004 12:17 am
Location: UK

Post by stuarth »

I keep recieving the same error - 'menuname' is undefined?
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi Stuarth,
I'm sorry about the frustration. I do understand because I still have those problems of not seeing menu sometimes when I'm testing. Usually it's because I didn't put in the correct path to the menu files on the web. Now I've created a folder in my root directory called 'test' and I've started just putting in the full path when I'm testing, like this

Code: Select all

<script language=JavaScript src="http://whatever.com/test/milonic_src.js" type="text/javascript"></script>
 
      <SCRIPT language=JavaScript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=http://whatever.com/test/mmenuns4.js><\/scr"+"ipt>");		
  else _d.write("<scr"+"ipt language=JavaScript src=http://whatever.com/test/mmenudom.js><\/scr"+"ipt>"); 
</SCRIPT>
<SCRIPT language=JavaScript src="http://whatever.com/test/menu_data.js" type=text/javascript></SCRIPT>
If you could give me the url I could check and see if I can find out what's wrong.

Ruth
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi Stuarth,
I was posting as you were putting up the other message. If you could give me a url to get your menu_data.js file I can check and see if there's something incorrect in it that's causing that message. Or you could paste the code here using the code buttons.

Ruth
stuarth
Advanced
Advanced
Posts: 14
Joined: Fri Oct 22, 2004 12:17 am
Location: UK

Post by stuarth »

Yes of course Ruth!
Try;

http://www.bii-compliance.com/blue_cube ... nu_data.js
http://www.bii-compliance.com/blue_cube ... ubeNav.lbi

the URL of the temporary homepage is http://www.bii-compliance.com/blue_cube/index.htm

I really hope you can help. I've been looking at this all day and have only managed to work backwards!
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

You have an error in the image path for the http://www.bii-compliance.com/blue_cube ... ubeNav.lbi When I go to that page and view source the source shows the images as images/why_bc_off.gif, the problem is the url for the .lbi is library/etc but you have no library/images folder. The folder for images is blue_cube/images/

As to why you're not getting the menu, I have to think it's something to do with that <!-- #BeginLibraryItem "/Library/BlueCubeNav.lbi" --> Since on my desktop, where I don't use the .lbi it shows fine. However, I can't help with that becaue I have no idea what it is or how it works. The only suggestion I can make is again with the paths. That error you are getting seems to be saying that the menuname part of this

Code: Select all

with(milonic=new menuname("Main Menu")){
is not defined. That definition comes from the program files milonic_src.js and mmenudom.js, so that implies the page is not getting the files.

I'm sorry I can't help more, but I don't know about .lbi which I think is the problem. Not that file, but the paths I think

Ruth
stuarth
Advanced
Advanced
Posts: 14
Joined: Fri Oct 22, 2004 12:17 am
Location: UK

Post by stuarth »

Thanks Ruth.

The problem for me at this stage is the images not showing on the menu bar. I shall create a local images folder to the library document and see if this helps.

Thanks for your help, greatly appreciated Ruth.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

You're welcome. If you fix the paths for the images in that file, you still won't see them, except on that page since the menu is not rendering except there. It must be the paths in that .lbi file for the menu files that is causing the problem for showing the menu.

Ruth
stuarth
Advanced
Advanced
Posts: 14
Joined: Fri Oct 22, 2004 12:17 am
Location: UK

Post by stuarth »

The Library file (lbi) is simply a page which applies to all my web pages. When I make a change to this document dreamweaver automatically updates the rest of my web pages. Just easier to manage the site.

I have someone coming in today to have a look at the problems. I shall let you know if I manage to sort this problem out.

Stu.
stuarth
Advanced
Advanced
Posts: 14
Joined: Fri Oct 22, 2004 12:17 am
Location: UK

Post by stuarth »

I created an images folder in the library directory (folder) and redirected the paths to fetch images from this location. The result was exactly the same :( Still no images appear on my menu until rollover.

Getting a little depressing this.

If anyone can help please give me a shout.
stuarth
Advanced
Advanced
Posts: 14
Joined: Fri Oct 22, 2004 12:17 am
Location: UK

Post by stuarth »

Do you think this could have abything to do with the fact that I have the Evaluation copy? I tried removing the image on the top left of the screen and writing it in html but 'milonic' came up instead of what I wanted?!! This clicked straight through to the Milonic site.

This website has been passed onto me so I was not aware of the Milonic tie up until I ventured into the source. I need this menu to work as soon as possible. If I need to purchase the full licence to stop this happening please let me know how I can do this.

Thanks
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Couple of problems. While not directly involved with your problem, they still need to be addressed.

You have removed the copyright statement from mmenudom.js. Not allowed...
All Copyright statements must always remain in place in all files at all times
******* PLEASE NOTE: THIS IS NOT FREE SOFTWARE, IT MUST BE LICENSED FOR ALL USE *******
You are a commercial site, so the menu absolutely does need to be licensed. See http://milonic.com/cbuy.php. That will also take care of the Milonic item appearing as the first menu item.

Might as well upgrade while you're at it. The current version is 5.51, you're running 5.45.


Stick with Ruth - she'll get you going.
John
stuarth
Advanced
Advanced
Posts: 14
Joined: Fri Oct 22, 2004 12:17 am
Location: UK

Post by stuarth »

Thanks John.

Like I said before I was handed the site a week ago and asked to piece it all together because a design agency handeling the design were 4 months overdue.

The Milonic script was clearly cleaned off some of the pages but it didnt take me long to realise. I instantly got on this forum to ask for direction because I need this sorted in order to continue the design process.

Ruth was excellent but I am now in direct contact with Milonic who are sorting out my menu. I will of course be paying for the menu. If the menu is a success I will also glady write a case study of my nightmare week!

Thanks for your input John.
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

I spent some time on it this morning, but unfortunately had to go back to my regular work (and haven't been out of this chair since!). Sorry I wasn't able to snag it for you then, but Andy will definitely get it done.
John
Post Reply