backimage & overbackimage

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

backimage & overbackimage

Post by Hergio »

I am having alittle trouble getting the backimage tag to work correctly, and I've scoured your site, Andy, for examples of how to use it but nowhere could I find an example of background images.

:?: I put the background images tag in like so:
,"Home","show-menu=home", "# backimage=../images/img.png;",,0
and the menu loads fine with the background image intact but when I mouse over it, I get a JScript error and the submenus do not close on the page, they all stay open forever.

:?: Also, I tried overbackimage like so:
,"Home","show-menu=home", "# backimage=../images/img.png; overbackimage=../images/img_over.png;",,0
Again, it works but the menus never close. And I think it has to do with the syntax I am using.

Andy, is there some definitive source or manual (besides the comments) where you can describe how each feature of your menus work? Like, list all the optional tags, what they do, and how to use them using examples.
I know the FAQ is good in some ways, but not everything. I'd love a Milonic DHTML Navigation Menu Manual/Reference that started with the words "Welcome to the wonderful world of DHTML menus...". You would get alot less mail in your inbox, I'm sure! hehe :D
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
wpatters1229
Super Advanced
Super Advanced
Posts: 90
Joined: Thu May 30, 2002 7:35 pm

Here is an example and dialogue on the subject

Post by wpatters1229 »

In NS 4.75 the fact that there is no background image gives me a green gray background on the main menu instead of a transparent background. I believe the color it is using is the one I use for the divider between menu items.


The other problem that might solve both problems is this; Can I use a background image in the main menu instead of a transparent background or a color? If I can use the same background image for all menus then when the main menu scrolls down as the follow attribute it will go over the top of the graphics I have below the menu.

The problem was down to the border color. With Netscape you need to remove the border color to get full transaprency. The only problem with this is that you then loose the separator bars. The workaround for this is declare a separator color for each menu item.

Can you then declare a background picture for each on the main menu too? I'd think that the text wouldn't show if you did that. I also notice that sometimes it take a second for the background graphics to show on the submenus. I'll try and make them as light (pixels) as possible.

Yes you can try this.

"backimage=img.gif;overbackimage=img_over.gif"

This goes in the URL part of the menu item where all the other settings go.

Hope this helps. I eventually decided not to use background images because they cause a slight delay in the submenus coming up. You first get the text and then a second later you get the images. That acted weird so I went back to color.
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

I figured out why it wasn't working

Post by Hergio »

I just wanted to say I figured out why my background images were not working.

My image file names had underscores in them, as in 'v4_img.gif' and 'v4_img_o.gif' and for some reason the Milonic menu code did not like that. So I took out all the underscores and it works perfectly.

So i sacrifice alittle of my sanity organization in my file naming but get the menu to work, oh well.
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
User avatar
Diakonos
Advanced
Advanced
Posts: 15
Joined: Thu May 23, 2002 9:00 pm

Post by Diakonos »

With the extensive use of CSS in the menu code, the cuplrit is/was the underscores. I know I nearly went crazy trying to figure out why my custom CSS named styles with underscores in them wouldn't work on my pages. Like you, I took out the underscores and, voila'!, everything worked perfectly.

Lesson - don't use underscores in CSS (and now in name Milonic menu entries!)
Post Reply