bug with rollover images and styles.

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
quizer
Beginner
Beginner
Posts: 7
Joined: Tue Mar 08, 2005 2:46 pm

bug with rollover images and styles.

Post by quizer »

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: Select all

  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: Select all

<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?
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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
quizer
Beginner
Beginner
Posts: 7
Joined: Tue Mar 08, 2005 2:46 pm

Post by quizer »

a.htm consists of:

Code: Select all

<html>
<body>
hello world.
<script type="text/javascript" src="milonic_src.js"></script>	
<a class=milonic href="https://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://websites.milonic.com/milonic.com/>JavaScript Menu Courtesy of Milonic.com</a>
</body>
</html>
and menu_data.js is:

Code: Select all

_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.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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

Post by Andy »

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
quizer
Beginner
Beginner
Posts: 7
Joined: Tue Mar 08, 2005 2:46 pm

no URL

Post by quizer »

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.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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: Select all

<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
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Ruth wrote:I believe that should be

Code: Select all

<html><title></title><head></head><body> and the rest of it.
Just a small correction...

Code: Select all

<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.
John
rcranswick
Super Advanced
Super Advanced
Posts: 62
Joined: Tue Aug 19, 2003 2:14 pm
Location: Bermuda
Contact:

Post by rcranswick »

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.
Richard Cranswick
CCS Group Limited
Bermuda
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

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
quizer
Beginner
Beginner
Posts: 7
Joined: Tue Mar 08, 2005 2:46 pm

some...

Post by quizer »

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.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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: Select all

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

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

Re: some...

Post by John »

quizer wrote:John- I am sorry 4 my speak style, u r right. I will try to b more polite
Accepted, and thank you.
John
quizer
Beginner
Beginner
Posts: 7
Joined: Tue Mar 08, 2005 2:46 pm

Post by quizer »

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: Select all

<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.
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

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.
John
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

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
quizer
Beginner
Beginner
Posts: 7
Joined: Tue Mar 08, 2005 2:46 pm

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

Post by quizer »

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.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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