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

bug with rollover images and styles.


Poster: quizer
Dated: Tuesday March 8 2005 - 13:55:43 GMT

the version I am using: Version 5.715 - Built: Monday February 21 2005 - 11:41


one of the menu item supposed to look like:
Code:
  aI("image=sample_images/2menu1.gif;overimage=sample_images/2menu1_over.gif;url=about.htm;");

its the most simple form of rollover.
this rollover item was not cliackable (bad behavior) in IE 6.0.2818 on windows 2000.
this item was clickable (good behavior) using mozilla firefox, or netscape.

solving this problem was by adding this to my hosting HTML:
Code:
<style type="text/css">
BODY{
   FONT-FAMILY:verdana;
}
</style>

I don't think that using that menu should require me to initialize styles on my html page.
note- if the font verdana doesn't exist in the os- so the problem continues.
is it a bug in IE? or in firefox?
or just in milonic?


Poster: Ruth
Dated: Tuesday March 8 2005 - 22:05:55 GMT

I made two images, named them what you have, copied and pasted your code as an item in the menu. I wasn't able to duplicate your problem. I tested in IE5.5, Netscape 6, 7.1, Opera 7.11, Firebird .07[old firefox] In all of them the item was clickable, and the mouseover worked.

Could you please give a url so we can see your page, menu_data.js file, css files if you have any?

Ruth


Poster: quizer
Dated: Wednesday March 9 2005 - 6:52:17 GMT

a.htm consists of:
Code:
<html>
<body>
hello world.
<script type="text/javascript" src="milonic_src.js"></script>   
<a class=milonic href="http://www.milonic.com/">JavaScript Menu, DHTML Menu Powered By Milonic</a>
<script   type="text/javascript">
if(ns4)_d.write("<scr"+"ipt type=text/javascript src=mmenuns4.js><\/scr"+"ipt>");      
  else _d.write("<scr"+"ipt type=text/javascript src=mmenudom.js><\/scr"+"ipt>");
</script>
<script type="text/javascript" src="menu_data.js"></script>   
<a href=http://www.milonic.com/>JavaScript Menu Courtesy of Milonic.com</a>
</body>
</html>


and menu_data.js is:
Code:
_menuCloseDelay=500;
_menuOpenDelay=150;
_subOffsetTop=2;
_subOffsetLeft=-2;



with(menuStyle=new mm_style()){

bordercolor="#296488";
borderstyle="solid";
borderwidth=1;
fontfamily="Verdana, Tahoma, Arial";
fontsize="75%";
fontstyle="normal";
headerbgcolor="#ffffff";
headercolor="#000000";
offbgcolor="#DCE9F0";
offcolor="#515151";
onbgcolor="#4F8EB6";
oncolor="#ffffff";
outfilter="randomdissolve(duration=0.3)";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color=#777777', Direction=135, Strength=5)";
padding=5;
pagebgcolor="#82B6D7";
pagecolor="black";
separatorcolor="#2D729D";
separatorsize=1;
subimage="menuimages/arrow.gif";
subimagepadding=2;

// subimage="arrow.gif";
}

with(milonic=new menuname("mainmenu")){
  alwaysvisible=1;
  style=menuStyle;
  orientation="horizontal";
  left=10;
  top=10;
  aI("text=hello;image=sample_images/2menu1.gif;overimage=sample_images/2menu1_over.gif;url=about.htm;status=about;");
  aI("image=sample_images/2menu2.gif;overimage=sample_images/2menu2_over.gif;url=facilities.htm;status=about;");
  aI("image=sample_images/2menu3.gif;overimage=sample_images/2menu3_over.gif;url=marketing.htm;status=about;");
  aI("image=sample_images/menu1.gif;overimage=sample_images/menu1_over.gif;showmenu=products;");
  aI("image=sample_images/menu7.gif;overimage=sample_images/menu7_over.gif;showmenu=Daughter companies;");
  aI("image=sample_images/menu2.gif;overimage=sample_images/menu2_over.gif;showmenu=contact;");
}

with(milonic=new menuname("Daughter companies")){
  style=menuStyle;
  aI("text=Maglan;url=../maglan;");
}

with(milonic=new menuname("contact")){
  style=menuStyle;
  aI("text=Submit Form;url=../contact.htm;");
  aI("text=Key Personnel;url=../key.htm;");
}



drawMenus();


the menu itself is much bigger than that, but the problem was reproduced with this cut of code on IE6.0.2800 with or without the pictures.
u will b able to see that the word "hello" on the 1st item is clickable- and the image is not.
mayb on IE5.5 it works but on 6 it doesn't! on netscape or firefox it works also.


Poster: Ruth
Dated: Wednesday March 9 2005 - 7:11:28 GMT

I am still unable to reproduce the problem, so it must be something occurring on IE6, which I don't have available to me. I'll post to see if anyone with IE6 can reproduce it and solve it.

Ruth


Poster: Andy
Dated: Wednesday March 9 2005 - 10:11:14 GMT

I just tested it in IE6 and it was fine.

Do you have a URL that we can see where this problem occurs, seeing the code is OK but doesn't always run the same because we tend to ommit the problematic code.

Cheers,
Andy

no URL


Poster: quizer
Dated: Wednesday March 9 2005 - 21:34:57 GMT

I don't have URL that can show u this happening.
it is currently under developement.

in order to reproduce this problem:
don't ommit any portion of this code.
just paste all that code in two files.
nothing else should b in those two files.
the directory that contains them also should b empty- only the 3 original js's sources of the milonic menu should b in that directory.

u'll c how that problem occurs again.
I really tested it a lot of times with different portions of the code in order to find the exact place in the code that makes the problem.
I've written an exact description of the problem and described how to reproduce it. please try this as I did.
it is ur bug!
oh- there is no url couz I've been able to reproduce this problem again and again on local hard drive.


Poster: Ruth
Dated: Wednesday March 9 2005 - 22:09:34 GMT

I did not omit anything from the code when I tested it. And, it's not just a process of copying and pasting your code. A person with IE 6 has tested the pages and can't find a problem. You have images, but I did go ahead and take the time to make images, they will of course not be your images, but I named them the same, and I have created a directory on my website so that the path would be the same, and I have uploaded two pages to my site.

You can test them. PAGE 1 This is the exact code you pasted here. Which seems to have something missing in the html code. I believe that should be
Code:
<html><title></title><head></head><body> and the rest of it.


This is the same page with all the other code in it. PAGE 2

I would also request that you test THIS URL which is the rollover image sample on the Milonic site.

And, I will request again that anyone with IE6 to try those pages.

Ruth


Poster: John
Dated: Wednesday March 9 2005 - 23:37:03 GMT

Ruth wrote:
I believe that should be
Code:
<html><title></title><head></head><body> and the rest of it.

Just a small correction...
Code:
<html><head><title></title></head><body>...

quizer, I'm more than a bit unhappy with your comments to Ruth...
quizer wrote:
don't ommit any portion of this code.; just paste all that code in two files.; I've written an exact description of the problem and described how to reproduce it. please try this as I did.; it is ur bug!

This Team is all volunteers, working to try and help you with your problems. Talking down to us will do you no good at all, nor will blaming the software up front until we find out exactly where the problem is.


Poster: rcranswick
Dated: Thursday March 10 2005 - 0:37:42 GMT

Just a thought. You say you are running this from your hard drive.

Just to clarify are you just double clicking on the HTML file and running it directly from the file system or is it being served by a web server?

I've seen some strange things happen when you do this. Specifically with IE6 and it's security updates.


Poster: kevin3442
Dated: Thursday March 10 2005 - 7:32:03 GMT

Hi quizer,

FWIW, I also recreated your setup as closely as I could to your description. I used the code you posted, unaltered. I used menu version 5.715, same as you reported. I created six images using the same names you used, and in the same paths you used. I tested with IE6.0.2800 on Windows 2000. I opened a.htm locally (directly from the hard disk) as well as through http:// from a web server.

I could not reproduce the problem; all of the links worked, including the one with text=hello. It's looking more to me like there's a local issue, rather than a bug in the menu system.

Question: Are you using a licensed or unlicensed copy of v5.715?

Suggestion: Have you tried your test on multiple computers?

Kevin

some...


Poster: quizer
Dated: Thursday March 10 2005 - 11:45:04 GMT

the test page u created http://www.poems2u.com/1/a/1-test.htm makes the same error as I had on my local hard drive. it is strange that this error doesn't reproduces on ur (kevin3442) computer.
I tried to test it on multiple computers and browsers- it is never happens- just on my computer and only with IE. running on windows 2000.
IE version 6.0.2800.1106.
rcranswick- I am double clicking the a.htm file so it is from the file system and not from a web server.
John- I am sorry 4 my speak style, u r right. I will try to b more polite.

The milonic sample with rollover images works fine couz milonic ppl have defined the css for the sample page. it happens only when no css, or <style>'s defined.


Poster: Ruth
Dated: Thursday March 10 2005 - 12:24:00 GMT

Did you test the other link, the second one at poems2u.com? If you did and that worked, the only difference is the html coding on the page.

Code:
<head>
   <title>Untitled</title>
</head>
after the html and before the body tag, which is not present in the code you pasted.

Ruth

Re: some...


Poster: John
Dated: Thursday March 10 2005 - 14:57:21 GMT

quizer wrote:
John- I am sorry 4 my speak style, u r right. I will try to b more polite

Accepted, and thank you.


Poster: quizer
Dated: Thursday March 10 2005 - 15:34:06 GMT

Ruth wrote:
Did you test the other link, the second one at poems2u.com? If you did and that worked, the only difference is the html coding on the page.

Code:
<head>
   <title>Untitled</title>
</head>
after the html and before the body tag, which is not present in the code you pasted.

Ruth


I test both.
both had the same problem.


Poster: John
Dated: Thursday March 10 2005 - 16:21:59 GMT

It's not failing for me, either. Put your code together and tested against XP Pro and 2000. Also tested from Ruth's site with no problems.


Poster: kevin3442
Dated: Thursday March 10 2005 - 19:25:02 GMT

quizer,

I uploaded the test I made if you want to try it. It's here. My guess is that it will fail on your computer, with IE6, but not on other computers.

kevin3442 wrote:
...Have you tried your test on multiple computers?

quizer wrote:
I tried to test it on multiple computers and browsers- it is never happens- just on my computer ...

That's a very telling point. Let's add up the evidence. (1) Despite trying, none of us can reproduce the problem. (2) No other user has reported a similar problem. (3) When you test, the problem occurs only on your computer, not on others.
quizer wrote:
...it is strange that this error doesn't reproduces on ur (kevin3442) computer.

In light of the above three points, it's not so strange. It's becoming pretty clear that yours is the only computer that demonstrates the problem. I'd say that there's something wrong with the IE6 installation on your computer. I'd suggest getting the latest updates for IE6. If that doesn't take care of it, uninstall then re-install it.

quizer wrote:
it is ur bug!

It's starting to look like it might be ur bug ;)

Kevin

its not me who written the milonic menu or the IE.


Poster: quizer
Dated: Friday March 11 2005 - 22:13:44 GMT

although its installed on my computer-, its not me who wrote this version of IE. if I am using that version, I am sure there r many other users who use it. and who can't c the rollover images as they should appear. I know we always can blame microsoft- but this kind of bug shouldn't b their fault- it is ur fault although only me can c it.


Poster: Ruth
Dated: Friday March 11 2005 - 22:51:14 GMT

We have not in any statement here blamed Microsoft. Kevin pointed out that there might be something wrong with the installation of IE on your computer, it is possible that IE has gotten corrupted, it happens, not just to IE but to other browsers and when it happens they have to be reinstalled.

We have done everything as to making pages and uploading them, the only other thing we can do is have you upload the exact page and menu files to some site so we are testing your pages and not ones that we have made, but since we have made them as you noted, I doubt there would be a different result.

As you said, others must use that version of the browser and we have had no complaints that there is anything wrong with the menu. I don't know what more we can do since we cannot reproduce the problem. There's no way to 'fix' something that can't be reproduced. We have followed your instructions and still cannot reproduce it.


Ruth