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: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:56

frames_menu -> Top Bar image


Poster: hasemann
Dated: Sunday November 16 2003 - 13:11:46 GMT

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


Poster: hasemann
Dated: Monday November 17 2003 - 20:46:40 GMT

is there nobody who uses the frames-menu??
:(


Poster: John
Dated: Monday November 17 2003 - 21:57:38 GMT

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.


Poster: kevin3442
Dated: Tuesday November 18 2003 - 3:56:45 GMT

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


Poster: Hergio
Dated: Friday November 21 2003 - 2:55:46 GMT

Whoo hoo Kevin! Thanks bud. :D I am so slacking lately, I have to get out of it.