frames_menu -> Top Bar image

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
hasemann
Beginner
Beginner
Posts: 2
Joined: Sun Nov 16, 2003 2:00 pm

frames_menu -> Top Bar image

Post by hasemann »

I had set a Top Bar image in my menu and the problem is, when I enter a text in the topbar, the bg-image from the bar moves right from the text :/
so I tried to to make many spaces but the menu effect only works if the mouse touches the "padding-area", but why??
,"                   ","show-menu=oses1 target=main;sourceframe=main;",,"#",1

link-> http://www.hasemanns-home.de/temp/frames_menu/index.htm
hasemann
Beginner
Beginner
Posts: 2
Joined: Sun Nov 16, 2003 2:00 pm

Post by hasemann »

is there nobody who uses the frames-menu??
:(
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Very few. Frames seem to be going the way of the Edsel!

Andy or Dave will take this. Patience, as they're snowed under right now.

Thanks.
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 »

jgillett wrote:...Andy or Dave will take this....
...or Kevin ;)

I see several issues with what you're trying to do:

(1) You are trying to use the "Topbar Image" element (element 17) of the style array as a background image for the menu. That's the wrong place. Element 17 of the style array is meant as an image to indicate the availability of a submenu branching off of a horizontal main menu... like a downward pointing arrow. That's why it moves to the right when you put text in, because the submenu indicator is normally at the right side of the menu item. It repeats because your example menu items all have submenus available, and 2001.gif is currently your "arrow". You should make that element blank.

(2) It seems like you want your 2001.gif image to be a repeating background across the main menu. To do that, you should move "images/2001.gif" to the 19th element of your simplemenu1 menu array.

(3) In order for the image to show through as the menu's background, you'll want to set the"off back color" and "on back color" elements of the "plain_style" array (elements 2 and 4 respectively) to "" or "transparent". Otherwise, the colors you are currently using will cover the image. You may also want to set the "border color" element (5th in the style array) to "" or "transparent", or use a 0 instead of a 1 at the end of each menu item definition to suppress the menu item separators.

(4) Since the 2001.gif image will repeat across the horizontal menu bar, you'll probably have to set simplemenu1's width (4th element) to 75 (the width of the 2001.gif), so that each menu item repeats the same width as the background image. You might have to tweak the value a little (e.g., 74) to prevent a partial repeat of the image at the right side.

(5) You'll probably also have to decrease the padding (10th element of the style array) to 3, to prevent the image repeating below the menu bar. That'll end up moving the whole menu up a little, so you'll also want to adjust the top setting (2nd element in the menu array) to move it back down so the images abutt the bottom of the page's background image... maybe about 29.

I think that'll get you started, but you may have to tweak one or two other things. It also occurs to me that it might be easier if, instead of using a repeatingbackground image in the menu bar, you might have better luck if you just go with an all-image menu, so you can adjust each item independently of the background.

Hope that help,

Kevin
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

Whoo hoo Kevin! Thanks bud. :D I am so slacking lately, I have to get out of it.
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
Post Reply