offbgcolor does not return when mouse moves on

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
chiage
Advanced
Advanced
Posts: 15
Joined: Wed Apr 30, 2003 4:39 pm

offbgcolor does not return when mouse moves on

Post by chiage »

Just converted a multi-level swap-image-based version 3 menu to version 5+ and have resolved all the niggling display problems with the exception of this:
When the mouse moves onto an item, it correctly swaps images and background colors. When the mouse moves to another menu item, the swap image function works on the original item and replaces the over image with the off image, but the background color around the image does not change back to the offbgcolor. The resulting off image is bordered by a wide swath of onbgcolor and it looks pretty (pardon the expression) crappy. This was not an issue with version 3. Anyone know how I can fix it?
Thanks!
Chiage
chiage
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,
A url, or test page if the site isn't up, would be extremely helpful so we can see your code to see if there's a problem, see which version you are using etc. Have you checked on the image rollover sample to see if it is working for you http://milonic.com/menusample17.php and which browser and OS are you using?

Ruth
chiage
Advanced
Advanced
Posts: 15
Joined: Wed Apr 30, 2003 4:39 pm

Post by chiage »

Hi Ruth,
Thanks for responding. The sample page is posted:
http://www.battle-creek.net/test/nl_302 ... oning.html
The links on that page won't work because it is in a different folder, but you will be able to see the display problem (offbgcolor color doesn't come back when the mouse moves on.) If you look at the same page done with version 3, you'll see the difference:
http://www.battle-creek.net/nl_302_table.html

Another issue: I am trying to find out how to set the width of the tool tips so the text wraps within a width-defined box instead of spreading across the page in one line. Setting the width within the tooltips.js file does not work. Any ideas? I see that the text in the tool tips on the Milonic tool tips sample page does wrap, so there must be a way.

Thanks for offering to help- Chiage
chiage
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

You'll need to fix some of your paths so we can see it...

Code: Select all

src="file:///C|/battle-creek_copy/milonic_src.js", etc.
As for tip width, did you look at the sample _data file that comes with the download? Clearly shows Milonic's use of the <br> tag to control width.
chiage wrote:Setting the width within the tooltips.js file does not work.
Changes made to any of the menu code files will void the license and deny support. We're here to help, but that is not possible if any changes are made to the code.
John
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

In the tooltips you can set the size using itemwidth= if you are asking about that parameter. As for the other you'll need to fix the paths so we can get the files to see what's going on.

Ruth
chiage
Advanced
Advanced
Posts: 15
Joined: Wed Apr 30, 2003 4:39 pm

Post by chiage »

I thought M_maxWidth= was considered a "user definable parameter" in the tooltips.js file. No? At any rate, thanks for the tip on wrapping text. Have a nice weekend.
chiage
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Thanks, you also, dont' forget to fix the paths for the page so we can see the files. You've still got the desktop paths listed so the menu is not showing.

Ruth
chiage
Advanced
Advanced
Posts: 15
Joined: Wed Apr 30, 2003 4:39 pm

Post by chiage »

Hi Ruth,
Weird, but when the is page on the server, the bgcolor does swap back when the mouse mouses on. Wouldn't do it when I previewed it on my box. Go figure...

I am a novice with all this coding, so I appreciate your kindness!
chiage
chiage
Advanced
Advanced
Posts: 15
Joined: Wed Apr 30, 2003 4:39 pm

Post by chiage »

Ruth, when you have a moment, can you please take a look at the menu on my test page and let me know if it displays properly now? The links themselves will 404 because the test page is in a different folder than my site pages. Just want to make sure you don't get any scripting errors when you access the page:
http://www.battle-creek.net/test/nl_302 ... oning.html
Thank you!
Chiage
chiage
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,
I did look at it, and replied to your email. I'll send another. I don't get any js errors on anything but I have some other questions in the email.

Ruth
Post Reply